Forum Replies Created

Viewing 15 posts - 4,126 through 4,140 (of 13,460 total)

  • RE: how to find dependent objects on Default or Rule in sql 2008

    this gets me a lot of information about any table/columns that have a rule:

    SELECT OBJECT_NAME(OBJS.object_id) As TableName,* FROM sys.columns COLS

    INNER JOIN sys.objects...

    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: Finding dependencies across databases

    this can get you started: it shows every dependency that is using a cross database reference:

    select

    OBJECT_NAME(referencing_id) As ViewName,

    OBJECT_NAME(referenced_id) As ReferencedObject,*

    from sys.sql_expression_dependencies

    where referenced_database_name is not null

    getting the column names...

    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 match a UNICODE NULL character within an nVarchar(128) string?

    well, so far it looks like a single offending character, so i think you can do a simple replace();

    if this produces the desired name , i would update it with...

    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 match a UNICODE NULL character within an nVarchar(128) string?

    something like this can help you identify the actual char;

    i don't know what unicode null is (is that ASCII code(0)?

    but this will help figure it out;

    select

    name,

    ...

    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 get list of affected tables in an Query

    also, look at this rather long thread:

    Select table names from queries

    in that thread you'll find a lot of ideas, but the one i'm referring to is Eugene Elutin's posts ...

    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 get list of affected tables in an Query

    is this a one time kind of thing?

    you could create a VIEW that uses the query, then check sys.sql_expression_dependencies for the objects, and then drop the view again:

    select

    OBJECT_NAME(referencing_id) 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: Is there any way to script out Linked server with remote login password ?

    nope it's not possible.

    linked server password, remote credential password, and also the password used for smtp authentication for any mail profiles are stored in a CREDENTIAL object, and there is...

    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: Deploying SQL 2012 client

    i just tested this on a virtual Win7/64 installation:

    sql_ssms.msi failed for me, and so did sql_tools.msi. it might be failing due to prerequeisites, i'll check that next.

    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 stop exporting an empty file using bcp utility

    I'd look at with checking the data existence first:

    if NOT EXISTS(SELECT 1 FROM SomeTable WHERE SomeCriteria = X)

    BEGIN

    --BCP code goes here

    END

    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 tabels

    Krasavita (1/16/2013)


    When I tried to create clustered index as you said and assign to read only file group,I get an error message:that can't save because this file group is readonly

    again,...

    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: Deploying SQL 2012 client

    it looks to me that on my 2012 DVD, you could simply grab the 58 meg MSI found here:

    {YourDrive} X:\x64\Setup\sql_ssms.msi, right?

    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 Database Wizard

    ok my memory is solid, even if my confidence in it is not:

    http://www.sqlmatters.com/Articles/Creating%20a%20copy%20only%20backup%20to%20avoid%20breaking%20a%20backup%20chain.aspx

    Important : You might have noticed that I've not mentioned transaction log backups or log chains at all....

    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 Database Wizard

    Gazareth (1/16/2013)


    Ha, beat me to it 🙂

    lol fast fingers today my friend,, but am i correct about a full backup not breaking the log chain?

    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 Database Wizard

    As I understand it, a full backup will never break the log chain .

    for me, i just do a backup with copy only for these situations.

    BACKUP DATABASE [SandBox] 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: Error creating new db; "application is not configured for this database"

    cummings.rd (1/16/2013)


    Hi

    The DB I restored is 8.25 MB; I use SQL management studio 2008, I set the options for the restore as follows...

    Overwrite existing database WITH REPLACE

    Leave db ready...

    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 - 4,126 through 4,140 (of 13,460 total)