Forum Replies Created

Viewing 15 posts - 9,946 through 9,960 (of 13,459 total)

  • RE: Retrieve hostname in clustered environment from active node

    i thought select serverProperty('ComputerNamePhysicalNetBios') was supposed to give you the actual machine you are connected to in a clustered environment, am i wrong?

    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: Catch "create index" event with EventData() function

    Roust this seems to be working on my sandbox; i was able to create a table with a pk and a uq, and it iterrupts the create index statement:

    CREATE TRIGGER...

    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: Invalid column name 'vTime'. while creating a backup script

    copy paste error; your variable is missing the @:

    set @vBackupPath ='\\l04\backup\RightFax_backup_'+@vDate+vTime+'.bak'

    should be

    set @vBackupPath ='\\l04\backup\RightFax_backup_'+@vDate+@vTime+'.bak'

    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 2005 - T-SQL UPDATE Statement Issue .vs. SSIS ...

    ben i hope this helps;

    this is the syntax i would use to update from a different table; it would be different if this is inside a trigger;

    i *think* your current...

    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: Determining Build number when service is NOT running

    which registry key are you looking at?

    on my machine, HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer\MSSQLServer\CurrentVersion

    has a value of CurrentVersion=10.0.1600.22

    for the the FileVersion of sqlservr.exe, i had 2 on my machine, one for an 2005 express...

    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: Return all characters to the right of a colon in a column

    some of your part codes do not contain a colon then; add a WHERE statement:

    WHERE CHARINDEX(':', PART_CODE) > 0

    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: Lock a table during tests

    sure, here's a basic example.

    in any query window with SSMS:

    begin tran

    select * from example with (tablockx)

    the with(TABLOCKX) gives you an excluseive table lock.

    now if you try in a second 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: Not getting compilation error though it contains errors.

    only on stored procedures, you can reference a table that does not exist, and the proc will still compile successfully; they call it delayed name resolution.

    so you'd be able 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: Linked Server Table Listing

    no matter what the linked server type is, you can use this command:

    EXEC dbo.sp_Tables_Ex myLinkedServer

    that will list all the tables available in the linked server...whether sql,access,oracle,or whatever...i...

    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: C2 Log vs. default trace log ?

    You've kind of hit on all the high points yourself, so i'll just expound a bit.

    first, format-wise, a trace is a trace; it's designed to capture exactly 64 columns of...

    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: Tally table ASCII validator - Anyone ever did this?

    J-F, to find non-compliant data with high ascii, i think you can just use this:

    select * from @test where value like '%[^''a-Z .,-]%'

    i think you'd use a Tally table...

    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: Help required in Fulltext search

    if that is a specific product, i think you'd have to add the synonyms to the theosaurus file right?

    it's the same concept if i search fro "camero", but i...

    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 RETRIEVE THE STATEMENT USED TO CREATE THE TABLE

    the original statement used to create a table is not saved/stored anywhere;

    all you can do is generate a statement which would create the table; it probably would not be exactly...

    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: Permissions on a Schema

    Roust_m (2/17/2010)


    Hi,

    I want to give a user permissions to creata any object within a schema, BUT indexes, as well as read/write/execute, etc.

    Is there a way to do this?

    Thanks.

    i don't believe...

    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: export from 2005 and import to 2000

    I looked at your datafile,a nd because some records will contain multiple CrLf,s you will have to use SSIS or BCP, as suggested above.

    on the SQL 2005 server, you will...

    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 - 9,946 through 9,960 (of 13,459 total)