Forum Replies Created

Viewing 15 posts - 6,421 through 6,435 (of 13,460 total)

  • RE: Error-Into Clause is not allowed in openqery

    i think the issue is related to teh name not being #tbl_temptable, but actually [#tbl_temptable[100underscores]0000000000F0]

    for example. if you do this after you know your table exists :

    SELECT table_name,

    column_name 'Column...

    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: Error-Into Clause is not allowed in openqery

    the INTO belongs outside of the openquery:

    CODE

    SELECT *

    into #tlb_testfile

    FROM OPENQUERY(test_TERADATA,

    'select *

    from databse.file

    where

    datacode=''49548''

    ;')

    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: Is there a way to find out the current daylight savings state

    if you have a datetime column for WHEN the data was actually entered, you could compare that to a TallyCalendar table(which you wanted to avoid) and get the DST offset.(ie...

    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: Stored procedure not showing under list

    sp_changeobjectowner 'wrongschema.procname','dbo'

    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 check only the numeric values at the same time ignoring the symbols or characters using SQL queries

    a lot of the work around examples so far would return false positives if the values are two or more digits, thought right? 2|5|21|23|55 for example

    redesign, or split the 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: SQL Server Not Releasing Memory

    Ninja's_RGR'us (11/11/2011)


    SQL takes memory because it needs it and lives happily ever after. Period, end of story.

    there. fixed it for you. 😛

    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: Auto fix orphaned users

    ok peers: poke holes in this: this seems to do what the oldstype autfox would do, right?

    well...this just generates the statements...i'd have to execute them:

    SELECT CASE

    ...

    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: Stored procedure not showing under list

    daveriya (11/11/2011)


    no its not in the master database or under system stored procedure.Any other option,while creating it i didint use 'USE DATABASENAME'.

    but i know i have selected correct database 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: Auto fix orphaned users

    in theory, we should start using the ALTER USER xxx WITH LOGIN =xxx syntax for fixing orphaned users now, right?

    what do you typically do if a USER exists in a...

    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: Stored procedure not showing under list

    make sure you didn't create it in the master database by mistake.

    it's possible that it is in the "System Stored Procedures" folder if someone ran EXECUTE sp_ms_marksystemobject 'YourProcName' on 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: Second Pair of Eyes, Please

    kick yourself:

    EXECUTE @sqlstmt looks for a stored procedure.

    EXECUTE (@sqlstmt) executed they dynamic query.

    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 track which record got update in table

    dammit...tricked into doing homework again, is that what you are saying, my friend? 😀

    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 Server Not Releasing Memory

    is the server witht eh memory problem one of many on the same virtual server? could it be that instances are eating up 100% of the available memory, and #20...

    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 track which record got update in table

    there's no need to test an EXISTS either...if you are in the trigger, of course there are rows.

    this will be what you are after i think:

    CREATE TRIGGER Trgr_Update_LastModifiedOn

    ON SERVERINFO

    AFTER UPDATE

    AS

    ...

    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 track which record got update in table

    NO.

    your error is a logical one:

    look at your trigger, it says this:

    UPDATE SERVERINFO

    SET LASTMODIFIEDON = GETDATE()

    that...

    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 - 6,421 through 6,435 (of 13,460 total)