Forum Replies Created

Viewing 15 posts - 6,616 through 6,630 (of 13,460 total)

  • RE: How to replicate BLOB (PDF & XML) files and how to extract them

    you'll have to explain...it depends on what you mean by "received"

    if they are "received" in a folder on the disk, vs "received" a s in a new row is created...

    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 replicate BLOB (PDF & XML) files and how to extract them

    File operations directly from TSQL are a pain.

    SQL server is designed to fiddle with objects INSIDE a database, and as soon as you want to step outside of that context(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: Update All Columns in a Table

    AndrewSQLDBA (10/4/2011)


    Is there a simple way to update All columns in a single table? Other than selecting the column name from the syscolumns table and writing an update statement 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: inserting data into views

    pramany (10/4/2011)


    with the help of that i did execute the trigger.but i could not be able to see the inserted row in view.can you help me in that

    thank you

    you have...

    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: inserting data into views

    you have to define the column names for the inserts:

    create trigger sampletrigger

    on sample view

    instead of insert

    as

    insert into basetable1(name,id) --right names?

    select name,id from inserted

    insert into basetable2(result) --right column name?

    select result from...

    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: Defining report background color in StyleTemplates.xml

    Colleen you are defining it in the Cascading Style Sheets of the template, right?

    the tag in CSS is the background-color:

    BODY { background-color: #EFEFEF;}

    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: Change collation on the fly (select statement)

    sure!

    this was the first select + collation example i had in my snippets:

    SELECT

    'REVOKE ' + convert(varchar(50),x.[Action])

    + ' on ' + x.[Schema]

    + '.'...

    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: Loop within a loop... BUT...

    i'm guessing here, but i'm thinking that using a FOR XML to concatenate the itwm field into a comma delimited list might be what you are after;

    here's a basic example...

    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: Deny/Revoke permission on sysdatabases

    is the login the user is connected to a member of the sysadmins?

    is "User1" really a domain account like myDomain\User1 that might be inheriting BuiltIn\Administrators,?

    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: construct interco elim query

    not sure what you mean by elimination, nor what data you wanted at the end;

    to me it looks like you have to join the table agaisnt itself...

    is this right?

    /*

    --Results

    organization account...

    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: DB Mail queued, not sending

    mohammed moinudheen (10/4/2011)


    There could be problem with your SMTP server. You might need to check with your network team regarding this to verify if ports are open etc. for 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: Wracking my brain about 'looping through linked servers'

    for me, cursors are ok in certain situations...when dealing with metadata items like you are.

    my rule of thumb is: if it's in one database, no cursors allowed.

    so the corallary...

    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: CHARINDEX Not Finding String

    it's pretty well documented that SQL will keep data for a TEXT datatype in a varchar(8000) as long as it's less than 8000 chars, otherwise it's stored a different way,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: query to retrieve all status if a given status falls in a specific date range

    your sample data didn't show the "or" part of your query...all the data would be returned regardless, because the4y are all between your start and end dates.

    i changed the sample...

    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 user to Create/Attach DB and then be immediate dbowner of the new DB

    paul take a look at this thread from a while ago

    http://www.sqlservercentral.com/Forums/Topic1115027-359-1.aspx

    in that thread, I slapped together an example of a proc that executed as dbo,and did the following:

    created(or found) a...

    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,616 through 6,630 (of 13,460 total)