Forum Replies Created

Viewing 15 posts - 13,996 through 14,010 (of 15,381 total)

  • RE: Need help getting first value in a column

    gmrose (9/20/2011)


    Perhaps "first" means the order in which the data was inserted into the table. It's like "First come, first served". This may not be the perfect SQL...

  • RE: Need help getting first value in a column

    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...

  • RE: SQL 2008 Datatype-Length Help needed

    When in doubt you should consult the datatypes and what they can handle. http://msdn.microsoft.com/en-us/library/ms187752.aspx

  • RE: Varbinary questions

    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

  • RE: Can I convert rows to columns?

    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...

  • RE: Any way to prevent an entire query from running if nothing highlighted?

    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...

  • RE: SSIS using variable as connection strings

    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...

  • RE: Database upgarde from SQL 2000 to SQL 2008

    Sqlsavy (9/19/2011)


    Hi All,

    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....

  • RE: 'Use' statement in Stored procedure...

    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.

  • RE: ignore duplicate keys on clustered index

    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...

  • RE: Trigger block problem

    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...

  • RE: is null???

    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...

  • RE: is null???

    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...

  • RE: is null???

    Your syntax error is EXACTLY the same one from a couple posts ago. Basic syntax of a case statement...

  • RE: is null???

    jbalbo (9/16/2011)


    Hi,

    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...

Viewing 15 posts - 13,996 through 14,010 (of 15,381 total)