Forum Replies Created

Viewing 15 posts - 5,641 through 5,655 (of 13,460 total)

  • RE: how to find the SPID by hostname

    sure, something like this will give you all the spids that are coming from a given hostname...

    if i have 8 SSMS windows open, i will have 8 spids, so it's...

    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: Filter Extended Properties by Schema

    looks like you already have it there, Welsh Corgi;

    you are using the object_schema_name() function, so just add it to your WHERE staetment :

    AND OBJECT_SCHEMA_NAME(ep.major_id) = 'CTL'

    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: Impersonate accounts

    adb2303 (4/5/2012)


    I execute the stored procedure and I get 5 rows back

    great...working as expected

    I disable the 'testsqlacc' in AD and get 5 rows back when exec'ing stored proc

    disabling a user...

    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: Question regarding appropriate applications of SQL CLR

    jshahan (4/5/2012)


    Thanks much, Lowell. We may have not been aware of how easily this can be accomplished and I'm really glad I asked. I'll run it by my...

    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: Question regarding appropriate applications of SQL CLR

    just my two cents:

    if you've created a CLR assemby on one of your servers, it is trivial to script the assembly as a binary string, which can then be executed...

    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 CLR

    small world, i'm playing with the exact same thing, and it is working beautifully.

    YAddress has posted a nice CLR on codeplex for US addresses , and it hits a free...

    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: Display only text/ characters in a string

    ok...help us help you;

    what would you like to do to the data? for example, if you KNOW the datetime string is always at the front, and always has the GMT...

    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: need assistance with MERGE sytax

    then just change the join condition to

    ON (target.ITEM = source.ITEM)

    AND (target.DESCRIPTION= source.DESCRIPTION)

    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: need assistance with MERGE sytax

    something like this passes the syntax check:

    MERGE INTO dbo.tableA AS Target

    USING(

    SELECT ITEM, DESCRIPTION FROM dbo.tableB

    ) AS source

    ON (target.ITEM...

    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: Need some help figuring out my first trigger

    just a basic logic error;

    a trigger uses the virtual INSERTED and DELETED tables, not the whole table itself.

    using the INSERTED table will update only the items that were affected, and...

    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 access sysobjects information through a non admin user

    sys.objects is a view which is filtered on the database_principals permissions.

    rows of data may exist for an admin which will not be visible to that user; simple enough to prove:

    create...

    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 Set the execution order of DDL Triggers

    well, as you probably read over at books online about sp_settriggerorder (Transact-SQL), you can set the first trigger, and the last trigger.

    there is no way, with four triggers, 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: SQL Server 2005 Upgrade - Service pack 2

    ssegereise (4/4/2012)


    I can no longer open my database its needs MS Sql SERVER Beta 2 how do i get it

    databases all by themselves are independant of service packs.

    only system databases(master,model,msdb)...

    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 to find orphan records on single DB

    another way to do it:

    use xp_cmdshell to get a list of all files in a directory, or all files including subdirectorys;

    sticking that data into a table, you can join 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: script to find orphan records on single DB

    ok got it.

    the files may have been deleted.

    You could do it via xp_cmdShell, or with a nice CLR that Elliot Whitlow has posted out there:

    http://nclsqlclrfile.codeplex.com/

    then you can use a simple...

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