Viewing 15 posts - 11,746 through 11,760 (of 15,381 total)
I agree too. The query posted matches exactly to the desired results you posted. Excellent job posting ddl, sample data and desired output!!! I wish more people would do that.
You...
June 5, 2012 at 9:11 am
ACinKC (6/5/2012)
June 5, 2012 at 8:37 am
nu_bie (6/5/2012)
Sean Lange (5/31/2012)
June 5, 2012 at 8:11 am
I googled that error message and there are tons and tons of people with different solutions to this issue. It seems there is an answer out there that will help...
June 5, 2012 at 8:01 am
weisen678 (6/4/2012)
when you say identity, do you mean it is a primary key?
No an identity is not a primary key. They are however often used as a primary key. I...
June 5, 2012 at 7:59 am
WOW your datatypes are a disaster. I don't mean to sound insulting but these tables have so many problems it is hard to comment on all of them.
--------------------------
Table AAA
--------------------------
password column...
June 5, 2012 at 7:57 am
Not a free solution but the one from redgate sounds pretty solid.
http://www.red-gate.com/products/sql-development/sql-source-control/%5B/url%5D
Also I googled "sql server tortoisesvn" and got thousands and thousands of hits. I am sure if you dig...
June 5, 2012 at 7:20 am
Rem70Rem (6/4/2012)
Thanks for your reply.
Basically what I want it a copy of the DDL in case someone mess with some objects. We don't have a source control and I...
June 4, 2012 at 2:59 pm
This one comes up around here all the time. Here is a nasty script I wrote several years ago to do this.
DO NOT RUN THIS IN PRODUCTION!!!!
declare @table_name varchar(2000)
declare @sSQL...
June 4, 2012 at 2:56 pm
This sounds like a cross tab.
http://www.sqlservercentral.com/articles/T-SQL/63681/%5B/url%5D
http://www.sqlservercentral.com/articles/Crosstab/65048/%5B/url%5D
June 4, 2012 at 2:53 pm
Ken at work (6/4/2012)
I have a view that joins 5 tables, one of which is an OpenQuery. Is there anyway to choose...
June 4, 2012 at 2:44 pm
Tripz (6/4/2012)
HiThank you
Here is the DDL of the functions
How about fn_split?
June 4, 2012 at 2:15 pm
There is not anyway to automate that type of script generation. This stuff is not easy to put together. How do you handle things like foreign keys? They would have...
June 4, 2012 at 2:10 pm
IgorMi (6/4/2012)
You have more ways. It's one right now on my mind. You could put your code, which selects the 20 rows, in a CTE and with an index for...
June 4, 2012 at 11:14 am
GilaMonster (6/4/2012)
Sean Lange (6/4/2012)
You have an OPEN statement off all by itself.
Open is the alias for the subquery. It's valid, though probably should be in [] as a...
June 4, 2012 at 9:02 am
Viewing 15 posts - 11,746 through 11,760 (of 15,381 total)