Viewing 15 posts - 766 through 780 (of 1,253 total)
By using "select into " statment you will only get the columns and the data. It will not create Primary keys , indexes etc.
May 9, 2008 at 1:13 am
Yup... check for the tables existence before doing the inserts using IF EXISTS.
BTW what do you mean by table is dropped in future? Its better to check before dropping a...
May 8, 2008 at 3:29 am
Hi
Check whether the table exists and then insert.
May 8, 2008 at 12:36 am
Hi
Hope i have understood you r post clearly..
I think this is an issue where design could be row wise or column wise and you can have arguments for and against...
May 8, 2008 at 12:32 am
Hi
The only error i found was in your parameter declaration.
"@Name varchar(255)," . No need of a comma if its the only parameter there.
Check your server,db...
May 8, 2008 at 12:12 am
nice article jeff.
Here's another one with more uses of tally table.
http://www.simple-talk.com/sql/t-sql-programming/the-helper-table-workbench/
May 7, 2008 at 3:34 am
Yup... convert the search string into a table with a function and then do the search. Much easier to work with.
May 6, 2008 at 9:52 am
hi
what about using fn_listextendedproperty check out BOL for more details.
May 6, 2008 at 12:38 am
Hi
If you have friends working on databases ask them if they can provide some general details regarding the projects they are working on. They could provide general details without divulging...
May 5, 2008 at 6:15 am
Hi
You can insert the result set of a procedures into a table.
Insert into table1 (col1,col2....)
Exec StoreProc1 @param1,@param2... .
May 5, 2008 at 12:40 am
Anoop
You have asked a very general question .
You will the info you need on BOL, MS site and also in this site. Why dont you read up and...
May 1, 2008 at 11:42 pm
Toni
Agreed that @@Rowcount will give you the desired result.
However you have to "select @@Rowcount" after the query .
This will give 2 result sets , first the result set...
May 1, 2008 at 11:24 pm
Hi
Keep in mind that select * into does not create indexes, Primary keys,Foreign keys and default values for column.
It would be much better if you apply the source table...
May 1, 2008 at 11:15 pm
Does column addition/deletion/modification happen regularly?
The script needs to be changed to accomodate the column changes . how is it done? How difficult is it to make any changes in the...
April 30, 2008 at 5:16 am
Viewing 15 posts - 766 through 780 (of 1,253 total)