Forum Replies Created

Viewing 15 posts - 9,571 through 9,585 (of 13,460 total)

  • RE: Function call on Insert Query

    show us the function dbo.GetNextID()

    we canhelp you turn it into an inline tablevalue function which can be used for multiple rows;

    your syntax for usage would change only slightly:

    INSERT INTO destination_table

    ...

    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: basic select 'i think'

    I can think of two ways to do this;

    first, lets think it thru: you can find a group of chips that have been salted, right?

    --chips that had salt

    select distinct chips...

    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: Using an identity value as value for another column for the same insert

    gotcha;

    I worked around the issue by combining the two triggers into one.

    my logic is on insert, the external id is ALWAYS the Identity ID; you can change it later.

    this does...

    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: Programatically set default to an existing db column

    George Murphy (4/30/2010)


    Thanks for your help. (mssqlserver 2005) I have a table called tier1 and a column named class nvarchar(150) it needs to have a default value set on that...

    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: Using an identity value as value for another column for the same insert

    instead of using SCOPE_IDENTITY, it's usually recommended to use the OUTPUT clause to get the values inserted;

    the advantage is similar to how you have to construct a TRIGGER: often times...

    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/ Procedure to Generate list of logins and the DB access and their roles

    i think it's due to the query; do a select * from sysusers in any database. there's no Builtin\Administrators in that list.

    the query is not showing implicit users who 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: Backup and restore solution for 800TB of data

    Steve can you put out some numbers for perspective? SSC has a lot of users and traffic, compared to many of us small biz guys we usually deal with; my...

    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: Alternatives to Triggers and SQL Agent Jobs

    OK I just completed a proof of concept. it's kind of what you want;

    Check your third party license. if they allow you to use replication for disaster recovery, you are...

    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 unique constraint.

    it depends on the unique constraint.

    instead of trying to do it on just one column, you should have asked if it can be expanded to cover more than just 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!

  • RE: How to Reference HTML Meta Tag in a Stored Procedure or Insert Query

    I think I'm starting to bring this into focus 🙂

    So, serve up the article dynamically via SQL query where 0001.aspx calls query such as select the article ID with 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 Reference HTML Meta Tag in a Stored Procedure or Insert Query

    Are you adverse to copying the same page over and over again?

    it'd be pretty simple to have some page look at it's own name, and provide the content dynamically, based...

    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: Alternatives to Triggers and SQL Agent Jobs

    i would do it basically the same as you were thinking;

    a job running periodically that compares my local table of the last time i looked at the data.

    your local table...

    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 Reference HTML Meta Tag in a Stored Procedure or Insert Query

    looks like we need a bit more info; Can we go to the web site and see what we are talking about?

    i'm assuming the ArticleId is unique to the content;...

    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 Reference HTML Meta Tag in a Stored Procedure or Insert Query

    just for fun, here is some inline javascript example, where i'm getting the meta tag "Description"'s value. i'm just doing an alert(), but you could have the button to submit...

    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 Reference HTML Meta Tag in a Stored Procedure or Insert Query

    Sid whenever I've done anything like this, I've always just added a hidden input to the form of the page that contains the article Id you'd be looking for;

    then...

    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 - 9,571 through 9,585 (of 13,460 total)