Forum Replies Created

Viewing 15 posts - 4,366 through 4,380 (of 13,460 total)

  • RE: Can you incorporate something from AD in a SQL query?

    Rod at work (11/19/2012)


    I should add, this does work with AD 2003, correct? Our servers are kind of old; we're running 2003 R2 AD.

    yeah, my code examples have been working...

    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: Restore fails

    yeah the error implies either the file or folder is spelled incorrectly, or the filename itself doesn't exist...extra underscore or anything like that a possibility in the 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: automate t-sql

    looks like no problem...you simply need to add that additional check to your update...

    something like this looks correct to me, base don what you posted so far:

    this would be 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: VPN access for vendor, multiple instance

    NJDave (11/19/2012)


    Hello

    I have a request to allow a vendor to have VPN access to my SQL Server that currently has one default instance.

    The default instance contains multiple databases for multiple...

    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: Can you incorporate something from AD in a SQL query?

    also, the actual number of fields available to query is daunting; i only grab a few myself;

    but this website http://www.rlmueller.net/UserAttributes.htm has a spreadsheet that has the most comprehensive list...

    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: Can you incorporate something from AD in a SQL query?

    yes, with a linked server.

    for me, domain information is very static...we don't add new people or move people into groups very often, so I usually take a "snapshot" of 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: Want to remove an existing user mapping for a login.

    looks like it cannot be done;

    my knee jerk reaction was to see if ALTER USER supported WITHOUT LOGIN, which it does not;

    my next idea was to ALTER USER WITH LOGIN...

    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: Any good resource for learning TFS ?

    there is a TFS Best Practices Guide out there from Microsoft;

    http://tfsguide.codeplex.com/

    @6.6 meg and 496 pages, it might be a bigger bite than you care to tackle.

    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: Add an option to display the answer and explanation for the QoTD?

    here's a worst kept secret:

    for any question that is not today's question of the day,

    the answer is in the newsletters:

    so if you were looking at the QOTD for Monday,...

    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: sp_defaultdb not working

    man you must be quick!

    i posted my answer, and noticed i left of the .png on the image name and fixed it right away...

    glad i could help!

    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: sp_defaultdb not working

    you probably never notice, but SSMS builds a default connection string that points to a specific database, like master, unless you selected or left <default> in place , so...

    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: Reading data from Excel using Sql

    you can create a linked server to point to an excel spreadsheet, and then reference it just like shanghaigirl-1125377's example.

    here's my detailed notes and example on getting it set up...

    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: Checking to see if a synonym is used

    here was my test...i made a cross database synonym in one database,a dn then a procedure in the same database as the synonym:

    create synonym MymasterView for SandBox.dbo.VW_FIXEDWIDTH

    create procedure pr

    as select...

    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: Checking to see if a synonym is used

    i *think* this would give you a list of dependancy items that reference an existing synonym in a specific database.

    note you can have global synonyms/ cross database synonyms in 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: how to remove characters char(0) to char(31)

    i have this scalar function saved in my snippets, that basically strips chars that don't fit within desired ranges;

    this strips your 0-31, but also spaces, punctuations and all high ascii...

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