johnson hk's Q&A profile
SQL Server create a empty DB from a existing DB
how to: create a empty DB from a existing DB keeping all fields and keys intact A clean way to create an empty database from an existing populated database is to script all the database objects in the database including Stored Procedures, Tables, User-defined data types and Views. Follow these steps in SQL Server 2005: 1 . In SQL Server Management Studio, right-click the database and click Tasks > Generate Scripts... 2 . Click the Next button on the Welcome dialog box. 3 . Check the "Script all objects in the selected database" option and click the Finish button. The script will be generated a ...Show All
SQL Server saving DTS package to sql server
hi, I have a "Transfer sql server object task" in SSIS that transfers few tables from one database to another. The task works fine and the project is saved on my c: drive. I was trying to save the project on the SQL server and don't know if i am doing somehting wrong I have the following selections made: Package Location: SQL server Server: ServerName Authentication Type: Windows Package path: /TransferTables Protection Level: Encrypt sensitive data with user key Now when i hit ok i get the "No description found" error with the following details: No description found (Microsoft Visual Stud ...Show All
Visual C++ Problem with MFC Wizards in VS2005
I'm having an issue with any VC++ wizards that have a drop-down menu item in VS2005. When selecting a new MFC project or solution that has drop down options (such as view class), attempting to select an option with the mouse causes the wizard to immediately close and lose or not create the project. VS doesn't crash but its extremely annoying. Keyboard does work properly, however. I have uninstalled and updated mouse drivers, rebooted, changed mice, etc...but still getting the error. Wasn't sure if this is a bug or whether anyone else has seen the problem. I know the future is all about .net and C#, but I still do MFC and ATL stuff and wo ...Show All
Windows Forms Calculate Width of a String in Pixels
hallo, Given a Font and a string, is there any ready-to-use function in .NET which can compute the resulting width of the string in pixels So that I can adapt say a Label, MenuItem or Textbox to the new size of a string. thx, Steve I guess we can agree to disagree on this one. =) I didn't have a lot of time to plink with&n ...Show All
Visual Studio 2008 (Pre-release) relative filepath for BitmapImage UriSource in Feb CTP
How do do I specify a relative filepath for an Image using feb CTP 06 I copied myimage.jpg into the same directory as the exe (bin/Debug and bin/Release) and I tried to use the pack syntax as the docs suggest: <Image> <Image.Source> <BitmapImage UriSource="pack://application:,,/myimage.jpg" /> </Image.Source> </Image> also I tried UriSource="myimage.jpg" In both cases I get a System.IO.Exception, saying: "cannot locate ressource myimage.jpg" what am I doing wrong Hy bitbonk, try to use "pack://siteoforigin:,,,/myimage.jpg" hope this helps, kimme ...Show All
Smart Device Development porting w. ce 5.0 customized platform into visual c++
HI I've got a problem when i decided to install a customized platform made by platform builder with the aim of writing a native c++ application(vs2005) for a smart device. The platform was installed successfully from the .msi package but it doesn't appear on platform choice window at the time to configure the project. Thanks for any help. Matteo p.s.:My new platform appears on device emulator manager window even if i don't think this pl. could be managed by the emulator.(in fact there's no connect option,another question for another forum section..) How was the SDK from Platform Builder created What CP ...Show All
Visual Basic self contained application
is it possible to make a self contained application that will hold in a sngle file all its components and will run directly without the need of installation and how Have a look at the ILMerge utility, it allows you to merge multiple assemblies into one. ...Show All
Visual Studio Tools for Office Outlook and ASP.NET
Hello, I have read things about VSTO and have heard people say about cool things you can do with outlook using VSTO. I was wondering if there was a way to use the power of VSTO from within an ASP.NET application. I currently have a ASP.NET application that would like to set up appointments in outlook and such, but im finding it to be a pain. Can someone give me some ideas or guidance in this area Thanks Mark Mark, You can't really "use VSTO inside ASP.NET", especially in the way you describe. Working with Outlook data needs to happen either inside of Outlook using the Outlook OM or by access ...Show All
SQL Server Keep a Group Together
Is this property available as in MS Access ...Show All
.NET Development Side by Side Execution
I have a little problem in my application: Assembly1.0 and Assembly1.1 is in GAC Application is referecing Assembly1.0, how can i tell Application to use Assembly1.1... and if Assembly1.1 is removed from GAC how can i tell Application to use Assembly1.0 thanks in advance i am just newbie.... I guess if you set the "specific version" property in reference to false, it will handle the problem for you. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. VB.NET/Direct X 3D object selection using the mouse click.
I realize that I'm in the wrong forum, but there dosn't seem to be one for non-game applications that use Direct X. I'm not a C++ programmer. I've used Visual Basic and VB.NET to write applications that display objects in 3D. I want to able to allow the user to select one of several 3D objects via the mouse. Can someone supply some sample code in VB or VB.NET that does this. Thanks in advance. The Pick sample in the SDK does this. To expand it to multiple meshes, just repeat the ray intersection determination for each mesh that you want to check. ...Show All
Visual Studio Failed to create wizard.
Follow the steps in the Walkthrough: Creating a Wizard http://msdn2.microsoft.com/7k3w6w59.aspx use c#. After step 6, I got two warnings Warning 1 "I:\test\MyNewWizard\bin\Debug\MyNewWizard.dll" does not contain any types that can be unregistered for COM Interop. MyNewWizard Warning 2 "I:\test\MyNewWizard\bin\Debug\MyNewWizard.dll" does not contain any types that can be registered for COM Interop. MyNewWizard After step 12, I got a messagebox "Invalid at top level of the document". What's wrong Augustin, using the sources you sent me, the Register For CO ...Show All
Visual Studio Express Editions combobox Columns in datagridview
hi, i have a datagridview contains 2 comboboxcolumns, i want when i select a value from the first column the second column will be filtered, for example first column contain varity of items like (iron, cloths ... etc) second column contains all type of units if its iron was selected in first column the second column will display just kg, and ton. but if its cloths was selected in the first column the units will cm, meter, roll how can i do that in a datagridview combobox columns thx in advace is ur 2nd column comin from DB if yes then just populate the grid with SQ ...Show All
Visual Studio Extreme slow binary file check-in
I'm using VSS2005, when I check in a binary file (6MB), it consumed over 5 minutes to check in the file, and VSS Explorer consume 100% cpu usage. However, it only consumed around 1 second when I check in the same file to VSS6. What's wrong with VSS2005 We have discovered a regression in the way VSS2005 checks in certain binary files. The fix will appear in the service pack for VSS2005. Unfortunately there is no workaround for it. Just to make sure it addresses your problem, too, could you mail us one of the binaries that caused problems f ...Show All
Visual Studio TFS Client in RC0?
Hi all, I have the DVD of VS 2005 RC0 Team Suite from the PDC. I have installed it, but I do not get the option from my tools menu to connect to the Team Server. Did this get moved The help says it's in the tools menu.... thanks, James Hi, The VSTS Suite will not have any Team Foundation functionality until Team Explorer is installed. This will be part of Team Foundation Server setup package. See the following thread: http://forums.microsoft.com/msdn/ShowPost.aspx PostID=100941 Regards, Vikram ...Show All
