Forum Replies Created

Viewing 15 posts - 10,096 through 10,110 (of 13,461 total)

  • RE: A "TOP 10" Query - puzzled as to why this does not work

    Richard McSharry (1/19/2010)


    "Why does posting a question to forums so often result in the answer popping into one's head immediately after posting?" :ermm:

    So true!

    by the time you take the time...

  • RE: Working with Dates

    I use a case just like Lutz suggested; only difference is depending on what the data is capturing, I have a cut off date, so i don't accept dates...

  • RE: Searching in 2005

    there is a suite of views that you can search the "definition" column from,

    for example this might get you started:

    select *

    from sys.all_sql_modules

    where definition like '%myTableName%'

    you can use this view...

  • RE: calling a temp table from within a sproc

    its variable scope;

    anything like variables or temp tables created during the execution of a stored procedure do not exist outside of the proc...that's why you can call the same proc...

  • RE: Delete statment not in

    there are prettier ways to do this, but does this give you some ideas?

    DELETE FROM MyTable

    WHERE orderid IN(SELECT orderID From Table1 WHERE orderID IS NOT...

  • RE: update table without join

    this works with the example data you posted; dunno about the data types, but the code works:

    ==edit i built this based on the first psuedocode, you posted again prior to...

  • RE: update table without join

    alex the logic is in your cursor; if you are doing something to one row, you can do the same thing to multiple rows; somewhere int here you've got what...

  • RE: Grant ALL & Deny Delete

    rew i think you are right...when you grant someone ALTER, the can alter or drop the object...as they might need to drop in order to create/recreate

    i've got a database DDL...

  • RE: CAN ANY ONE WRITE QUERY FOR BELOW DESCRIPTION!

    my mind reading hat is better than yours today...

    actually he put in a description along with the subject, which you can only read at the topic listing level, and cannot...

  • RE: SQL 2005 64 bits SP

    doh! rereading, i can see that;

    this should help:

    http://support.microsoft.com/kb/321185

    2005 versions:

    For example, the results resemble the following. Collapse this tableExpand this table9.00.1399.06 RTM Enterprise Edition

    The following table lists the Sqlservr.exe version...

  • RE: SQL 2005 64 bits SP

    Rem-487422 (1/14/2010)


    HI,

    Where I can find the list of SP for SQL 2005 64bits and the build attached to it?

    Thanks

    Rem

    not sure what you mean...SP=Stored Procedures, right? Stored procedures are not 32...

  • RE: Creating a stored procedure to check and strip html tags from all the columns

    i have this code in my snippets for stripping HTML tags, but there's other ways to do this, regualr expressions and CLR being boatloads faster, as GSquared stated.

    this might not...

  • RE: CAN ANY ONE WRITE QUERY FOR BELOW DESCRIPTION!

    it looks like the data consistently has comma-space-twoCharState in it. you'd have to verify your source.

    It's my experience that MLS data is available already parsed into fields, I guess this...

  • RE: Grant ALL & Deny Delete

    rew can you login as that specific user in SSMS, and run these two queries? maybe the user has other roles or rights?

    select * from fn_my_permissions(null,'SERVER')

    select * from fn_my_permissions(null,'DATABASE')

  • RE: Script out database schema

    take a look at the view sys.schemas;

    this seems to give me the lsit I think you were looking for; note you have to run this on each database:

    select * from...

Viewing 15 posts - 10,096 through 10,110 (of 13,461 total)