Forum Replies Created

Viewing 15 posts - 5,371 through 5,385 (of 13,460 total)

  • RE: Can I import DB Email Profiles?

    take a look at this forum post;

    in the middle of it I've produced a script that exports all the database mail settings and profiles;

    the only tough part is the SMTP...

    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: Data loading through t-script from stage to dev or qa or prod.

    here's one way to do it, but at some point, you have to make a logical decision about what database to use.

    by using synonyms, you can reuse the same code,...

    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: Creating a Linked Server to DMZ server

    yes, you'll need either a VPN or a firewall hole to get to the DMZ server;

    the whole purpose of the DMZ was to isolate it from contact for security purposes....

    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 can i select all dates between date range?

    here's a couple fo examples:

    note the end date, you might want to change that to be just lss than, unless you want to include midnight on 01-15-2012

    --Hardcoded:

    SELECT * From [SQLTable]...

    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 - Logins

    or even better:

    I've only done this for testing,but not in production:

    research a little deeper on how to rename the sa user to something else, and create a regular user named...

    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 - Logins

    with all the concerns about losing customer data, it's a pretty big liability hole;

    how about putting them on a seperate SQL instance,instead of that production server, and that would...

    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: Issue Connecting Classic ASP pages to SQL Express 2012

    what you posted originally was using an explicit connection string, and no DSN; did you ever confirm that you can connect from another machine?

    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 - Logins

    bump it to the groups that handle the contracts and RFP's;

    for example bring the issue up with the contracts/legal department; check to see if the contract explicitly states they...

    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: Programmatically creating a table alias

    dwain.c (6/14/2012)


    Lowell - Another nice learning experience from you. That's now 2 in as many days!

    I see this was introduced in SQL 2005. Any idea if it can...

    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: Adding Extended properties values if not present

    If you have all the descriptions ready so you can script them; I would drop if exists and re add themback no matter what forget if the values are there...

    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: Adding Extended properties values if not present

    if it exists at all, even with old values?

    this example would use IF EXISTS (i think!) to check if it's already there:

    IF NOT EXISTS(SELECT 1

    ...

    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: showing Mutual friends through query

    i think either of these will do what you are asking:

    SELECT *

    FROM tbl_usermain FirstGuy

    INNER JOIN tbl_user_friends FirstFriends

    ON FirstGuy.user_id = FirstFriends.user_id

    LEFT OUTER JOIN...

    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: combine two queries into one

    something like this i think?

    select

    Rented.make,

    Rented.model,

    Rented.year,

    Rented.location,

    Rented.agent,

    Rented.status,

    Returned.status

    from Rentals Rented

    LEft Outer Join Rentals Returned

    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: Looking for Software to automate provisioning of sql logins

    i would probably tackle it with a scheduled job, or in a service broker fired on database restore or database creation.

    it depends on what exactly you are trying to do,...

    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 can I return value from function that comes from dynamic sql

    you can use a case statement to return a specific column value based ont heparameter passed:

    /*

    --Results

    2.3

    1.79

    */

    SELECT [dbo].[ExRateProc]('USD',GETDATE()) As Results

    SELECT [dbo].[ExRateProc]('oops',GETDATE()) As Results

    CREATE TABLE [dbo].[ExRates](

    [ID] [int] IDENTITY(1,1) NOT NULL,

    [ratedate] [date] NULL,

    [USD]...

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