This blog gives latest information ...about asp.net,C#.net,SQL server,Java scripts.... and many more technologies...
Tuesday, October 13, 2009
Insert data to table from another table
(asumming, tables have been created and structures are same)
SET IDENTITY_INSERT [DB1].[dbo].TableName ON
insert into [DB1].[dbo].TableName select * from [DB2].[dbo].TableName
SET IDENTITY_INSERT [DB1].[dbo].TableName OFF
Above 3 lines:
1. Disable Identity.
2. Dump data from table.
3. Enable Identity again.
Hope you like it.
Saturday, August 29, 2009
Monday, July 6, 2009
jQuery
Visual Studio Tips-1
Hi
Here are some useful tips, which will help you a lot while working with VS.
· Cycle the Clip Board:
o Copy few text one by one, then to cycle the clip board(copied items), press Ctrl+Shift+V
o
· Browse with different browsers:
o By default VS will use Internet Explorer as default browser, well you can change the default settings or can browse a particular page with different browser.
· Open Visual Studio from Run Command:
o Run > type “devenv” without quotes > press “ok”
o When you open the VS, mark that, before opening VS, a small splash screen will come, and if you don’t want to see that screen(which can faster opening VS), you can do that doing a small addition in the above command:
§ Type “devenv /nosplash” instead of “devenv”.
Happy coding :)
Friday, July 3, 2009
Open SQL server with one click
Hi
Before reading this post, tell me how your opening SQL server, I mean how many steps its taking… just count… may be from 3-4 clicks… and for opening object explored 2 more .. And opening new query window for a particular database 2 more…
Now I will tell how you can open SQL server (with object explorer, new query window with selected DB) in one lick.
You know how to open it normal way, i mean from Run command, it is “sqlwb”(for sql server 2005) and “ssms”(for sql server 2008).
Open Run command, type:
sqlwb -S ServerName -d DataBaseName -U UserName -p Password
e.g:
sqlwb -S TestServer -d dummyDatabse -U Username_test -p myDummyPassword
To get help for these commands and more type “sqlwb /?” in run command.(“ssms /?” for 2008 sql server).
Happy coding…!!!
