Viewing 15 posts - 571 through 585 (of 898 total)
kirkdm01 (1/24/2012)
How to post data/code on a forum to get the best help - Jeff Moden
http://www.sqlservercentral.com/articles/Best+Practices/61537/
January 24, 2012 at 5:21 am
This should be easy if you post the DDL and sample data in a readily usable format
You will get a tested solution back
Please check the link in my signature on...
How to post data/code on a forum to get the best help - Jeff Moden
http://www.sqlservercentral.com/articles/Best+Practices/61537/
January 19, 2012 at 2:00 am
From whatever I could understand, I have made some changes
Check if this is what you need
select 0 as IntUserID, 'Select...' as chrFullname
union all
Select U.intUserID, U.chrUnAllocatedUser
-- there should be some...
How to post data/code on a forum to get the best help - Jeff Moden
http://www.sqlservercentral.com/articles/Best+Practices/61537/
January 17, 2012 at 6:43 am
There is also an option in Tools->Options->SQL Server Object Explorer->Scripting->Table and view options->Script indexes
Set the value to "True" and then try scripting the table, you should get the script of...
How to post data/code on a forum to get the best help - Jeff Moden
http://www.sqlservercentral.com/articles/Best+Practices/61537/
January 17, 2012 at 4:52 am
I don't think there is a way to create a FOREIGN KEY linking a column in a table to 2 columns from 2 different tables
You will have to use TRIGGERS...
How to post data/code on a forum to get the best help - Jeff Moden
http://www.sqlservercentral.com/articles/Best+Practices/61537/
January 17, 2012 at 2:38 am
babak3334000 (1/17/2012)
mhike2hale (1/17/2012)
My script works.I think you did not execute this line:
exec(@queries)--execute your queryThis will execute the generated scripts and make changes to your database.
Ok very Good
I quickly...
How to post data/code on a forum to get the best help - Jeff Moden
http://www.sqlservercentral.com/articles/Best+Practices/61537/
January 17, 2012 at 1:07 am
SQL Kiwi (1/16/2012)
Kingston Dhasian (1/16/2012)
But, I don't think a CURSOR is mandatory to script out the UPDATE'sYou can do it even without a CURSOR
It's not, but unless you have a...
How to post data/code on a forum to get the best help - Jeff Moden
http://www.sqlservercentral.com/articles/Best+Practices/61537/
January 16, 2012 at 11:49 pm
SQLRNNR (1/16/2012)
Kingston Dhasian (1/16/2012)
Try it and get back...
How to post data/code on a forum to get the best help - Jeff Moden
http://www.sqlservercentral.com/articles/Best+Practices/61537/
January 16, 2012 at 11:30 pm
In that case you can use the INFORMATION_SCHEMA.COLUMNS view, and create a Dynamic Script that will update all columns with bit data type
It will be better if you follow Jason's...
How to post data/code on a forum to get the best help - Jeff Moden
http://www.sqlservercentral.com/articles/Best+Practices/61537/
January 16, 2012 at 11:19 pm
UPDATETableName
SETColumnName = 0
WHEREColumnName IS NULL
How to post data/code on a forum to get the best help - Jeff Moden
http://www.sqlservercentral.com/articles/Best+Practices/61537/
January 16, 2012 at 11:03 pm
sqldba2k8 (12/15/2011)
genuine people have their own knowledge to get the job.
I am working in developement platform.now i want to move admin...
How to post data/code on a forum to get the best help - Jeff Moden
http://www.sqlservercentral.com/articles/Best+Practices/61537/
December 15, 2011 at 2:58 am
Please post the DDL and some sample data along with the expected output. Also specify the columns that need to be checked for the existence of duplicates. If you provide...
How to post data/code on a forum to get the best help - Jeff Moden
http://www.sqlservercentral.com/articles/Best+Practices/61537/
December 14, 2011 at 2:27 am
You haven't given the description of your problem
Also post the DDL along with some sample data and the expected result
This will help people to give you tested solutions for your...
How to post data/code on a forum to get the best help - Jeff Moden
http://www.sqlservercentral.com/articles/Best+Practices/61537/
December 8, 2011 at 3:14 am
What value would you like to insert for the other columns like sex, averageage, maximumage and minimumage?
How to post data/code on a forum to get the best help - Jeff Moden
http://www.sqlservercentral.com/articles/Best+Practices/61537/
December 7, 2011 at 4:23 am
You will need an ORDER BY in your sub-query for the TOP 1 to work poperly.
How to post data/code on a forum to get the best help - Jeff Moden
http://www.sqlservercentral.com/articles/Best+Practices/61537/
December 7, 2011 at 3:45 am
Viewing 15 posts - 571 through 585 (of 898 total)