Forum Replies Created

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

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

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

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

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

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

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

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

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

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

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

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

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

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

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

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

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

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

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

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

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

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

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

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

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • 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')

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

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

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Grant ALL & Deny Delete

    i wouldn't give them the db-owner role, but instead create a role something like the following:

    remember the role of db_owner has the ability to drop the database, which you probably...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

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