Forum Replies Created

Viewing 15 posts - 5,266 through 5,280 (of 13,460 total)

  • RE: insert output to temp table

    to capture the results form a stored procedure, the table must exist, with all the columns defined;

    then you can do something like this:

    IF NOT EXISTS (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: how to auto generate ID's in MSSQL

    well an identity will easily fix the contention issue, so if you arbitrarily eliminate that possibility, i'm not sure what you can do.

    lfcost (7/3/2012)


    I can't use a calculated field, must...

    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: Get Testdata

    here's a link to the US Census data that has a list of the miost frequently occuring male firstnames, female first names, and lastnames.

    a cross join of all that data...

    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: Easier/better way to find column with data value

    Tobar take a look at this thread, or search for "sp_UGLYSEARCH" (with quotes)

    http://www.sqlservercentral.com/Forums/Topic1221552-1292-1.aspx

    that's a proc i wrote to do exactly what you are asking: find specific values in a 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: creating tables in sqlserver

    I agreen with mohammed moinudheen ;

    there is no shortcut for this; knowing how to use the CREATE TABLE command is one of the first steps you need to know ...

    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: Oracle's OLEDB Provider VS Microsoft OLEDB Provider for Oracle in SSIS

    definitely you'll need to use the Oracle driver, and not the microsoft driver;

    besides there not being a 64 bit version of the MSDAORA driver, there are a few other issues...

    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: how to auto generate ID's in MSSQL

    the way i've always tackled this situation is to go ahead and have an identity column, and then a persisted calculated column to create teh text-based userid;

    For example, Invoices:...

    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: Does a user defined function tied to a constraint have visibility to the inserted data?

    maybe you just need help constructing the WHERe clause?

    SELECT

    M.SomeData

    FROM MyTableInsert M

    WHERE @SomeData <> 1

    so the above, isntead of returning zero, will return an empty...

    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: Encryption in SQL 2008 Standard Edition 64 Bit

    you are correct.

    a SQL admin has access to all the data, so unless the data is encrypted at the column level, the admins have access to it.

    even then, if the...

    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: Generating Non-uniform Random Numbers with SQL

    Excellent contribution Dwain; I added this to my toolbox!

    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: Query Help

    here's my version, but i was assuming you wanted to cop off the last period and whatever was to the right of it:

    I left a lot of intermediate calculations 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: TIMESTAMP Column in Oracle to SQL Transformation

    ok kewl;

    i found a pdf at the microsoft site:

    http://www.microsoft.com/en-us/download/details.aspx?id=9483

    inside that pdf , way down on page 65, it has a bunch of mapping details, with the datetime stuff starting on...

    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: TIMESTAMP Column in Oracle to SQL Transformation

    Oracle TIMESTAMP can be a maximum of datetime to 9 decimal places;

    so depending on your needs, you could go with datetime (which is to 3 decimal places) or datetime2 if...

    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: Name the things that were supposed to cause the End Of The World

    ChrisM@home (7/2/2012)


    Nige.

    ok even with my awesome Google-Fu skills, I'm not getting the reference.

    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: Copy backup of all databases to different locations.

    look at the MIRROR TO option in the standard backup command;

    that can make an additional copy of the backup to another network/local loccation, so there are two copies out...

    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 - 5,266 through 5,280 (of 13,460 total)