Viewing 15 posts - 13,996 through 14,010 (of 15,381 total)
gmrose (9/20/2011)
September 20, 2011 at 1:26 pm
n_parker (9/20/2011)
First would be based on the ID and SubID fields combined
That does NOT define an order. There must be a column that will tell you what is "first". For...
September 20, 2011 at 1:16 pm
When in doubt you should consult the datatypes and what they can handle. http://msdn.microsoft.com/en-us/library/ms187752.aspx
September 20, 2011 at 12:01 pm
I am not familiar with that product and never heard of that table but, can you cast that column as a varchar?
select cast(Owner as varchar(max)) as Owner from tbl_RBS_UserRole
September 20, 2011 at 10:38 am
That looks more like a report than a query. Presentation should be done at the client and not when pulling the data. This would be a pretty simple report in...
September 20, 2011 at 8:09 am
How about just putting a begin transaction on the first line and a rollback on the last line? At least if you accidentally run the entire open window of queries...
September 20, 2011 at 7:52 am
Not sure what your question is. If you are looking for connection string format try http://www.connectionstrings.com/%5B/url%5D. If you are looking for something else try asking again to explain what you...
September 19, 2011 at 3:44 pm
Sqlsavy (9/19/2011)
I'm upgrading SQL 2000 database to SQL 2008.I can find SQL 2000 collation on SQL 2008 as well.
1. Is SQL_Latin1_General_CP1_CI_AS(SQL2000) is similar to SQL_Latin1_General_CP1_CI_AS(SQL 2008)?
2....
September 19, 2011 at 3:42 pm
You are in the same boat. If you are doing this totally in a stored proc you would either have to use dynamic sql or create clr stored proc.
September 19, 2011 at 11:14 am
Pretty hard to interpret what you are saying. I think you are saying you want a 1:1 relationship between the two tables? If so just make your primary key be...
September 19, 2011 at 10:46 am
toddasd (9/19/2011)
Is there a question here, or is this just a demo of the most convoluted way possible to do table auditing?
Convoluted to say the least. It also doesn't work...
September 19, 2011 at 10:26 am
jbalbo (9/16/2011)
Hey Sean REALLY appreciate it...When can I attend your class!! 🙂
Thanks
Joe
Most days right here on SSC. Of course I am barely qualified to be a T.A. compared to...
September 16, 2011 at 3:41 pm
I think you are correct. I like the comments. 😉 Definitely demonstrates you understand what is happening. Remember that YOU need to understand what the code is doing. It is...
September 16, 2011 at 3:32 pm
Your syntax error is EXACTLY the same one from a couple posts ago. Basic syntax of a case statement...
September 16, 2011 at 3:13 pm
jbalbo (9/16/2011)
I have this statement:
insert into @TEMPTABLE (TAG_NAME, TAG_DATA)
select TAG_NAME = 'CUST_ALLERGIES',
TAG_DATA =CRT.FullName + '~' + M.GENERIC_NAME
FROM MEDICATION M WITH (NOLOCK)
INNER JOIN CLIENT_ALLERGY CA ON M.OID = CA.MEDICATION_MONIKER
Inner join...
September 16, 2011 at 3:01 pm
Viewing 15 posts - 13,996 through 14,010 (of 15,381 total)