Forum Replies Created

Viewing 15 posts - 6,706 through 6,720 (of 13,460 total)

  • RE: How to trigger emails based on insert SQL 2003 or 2005

    here's a tested, working model you could use;

    it takes multipel inserts into consideration,and sends the email from within the trigger.

    so if say, 5 rows were isnerted in a single INSERT...

    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: query help

    a CTE is just a subquery to get sample data out so people can see and test it themselves(since you did not provide the CREATE TABLE...INSERT INTO we need)

    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: Tempdb size difference with sp_database/sp_helpdb

    sp_database isn't a built in procedure, it must be one that your group added;

    i'm guessing that 8704 is the number of pages but i'm not sure without seeing 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: query help

    does this work for you?

    based ont he sample data you posted, this works:

    ;With emp (empid,createddate,job)

    AS

    (

    SELECT '1','2011-01-01','db' UNION ALL

    SELECT '1','2011-01-01','db' UNION ALL

    SELECT '1','2011-02-01','db' UNION ALL

    SELECT '2','2011-01-01','db' UNION ALL

    SELECT '3','2011-01-01','db')

    select empid

    from emp

    where...

    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: If I use asp.net to connect SQL 2008, what account should create in SQL server?

    create a new login, for example "WebAccess", then add a user to the database the web pages will access.

    create a role for the appropriate rights,a nd finallly , put WebAccess...

    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 to extra image from varbinary column and create image on file system

    ok check this out please.

    this has worked correctly on all 5 of my tables which happen to have picutres/images in either image datatypes or varbinary(max) datatypes.

    i could correctly guess 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: They haven't permission to touch even the sql server agent without removing sa priviledge.

    forsqlserver (9/22/2011)


    Hi,

    The developers have sa priviledge on 1 server , they usually stop the sqlserveragent service and due to which the nightly backup jobs fail.

    Can it be possible to stop...

    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 to extra image from varbinary column and create image on file system

    I went down the rabbit hole pretty deep investgating this; kind of interesting.

    this code project example compares teh first 10 bytes to determine the image file type.

    if you can add...

    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 to extra image from varbinary column and create image on file system

    untested, but syntax wise in vb.NET it looks like i can take any binary data, try to stick it in a "System.Drawing.Image", and if there's no error, do a Save...

    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 to extra image from varbinary column and create image on file system

    Charlottecb (9/21/2011)


    I'm probably being very simplistic \ ignorant in my outlook here, so please bare with me as I've never had to do anything like this before... Why can 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: Migrate several jobs to another server

    i think you have to script the jobs out; as i remember it, the msdb rows refer to the server name, so if the "new" server is not 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: Help required to extra image from varbinary column and create image on file system

    here's some .NET code i posted from a different post on the same issue;

    you can use it as a model if you have the file name and binary data together,...

    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 to extra image from varbinary column and create image on file system

    is the original file name saved in the row of data with the ID and the varbinary data? if you don't have the filename ,(which implies the image type),or at...

    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: Encrypting Advice

    the constructor allows only literal strings, not a variable, so

    ENCRYPTION BY PASSWORD =@var fails,

    ENCRYPTION BY PASSWORD ='static string' is good

    so i think you'll have to switch to dynamic...

    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: Disaster recovery - master db concerns

    I'm not sure i would even consider restoring master at all.

    the only items of any importanceto me are the following:

    1. Server Logins and their permissions.

    2. Linked servers. definitions 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!

Viewing 15 posts - 6,706 through 6,720 (of 13,460 total)