Forum Replies Created

Viewing 15 posts - 7,771 through 7,785 (of 13,460 total)

  • RE: Script Database relations

    I'm not sure what terms you might have searched for, so try a google search for

    sql server script database relations

    or

    sql server script foreign keys

    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: Sync 4 express servers

    it depends on what you mean by "sync" and also the allowed latency of the data.

    if you mean combine changes from each server into one master database, that's a lot...

    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: SQLMAIL

    sp_sendmail doesn't auto-magically break and double send, so there's got to be something unexpected in the workflow instead.

    Are you looping thru a table or results, and calling sp_sendmail on each...

    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: grant permissions to run stored procedure and more

    \you are correct: you only need to grant EXECUTE on the stored procedure; your user does not need any access to the objects the procedure might use or manipulate.

    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: Comparing Passwords

    I'm assuming we are talking about SQL server login passwords, and not an encrypted value in a table that is used by the app.

    Ed you can compare if the hash...

    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 to reorder the table Main_Table by field DteTme

    sql doesn't really need the data in a specific order; you should typically just use an order by when you need the data in a specific order.

    it uses indexes 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: grant access to function

    sounds like you need a GO statement between the function and the GRANT SELECT myFunction statement.

    the function is trying to compile with the GRANT statement as part of it's body,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: Insert into Spatial table

    can you confirm this actually returns something from your side: syntactically, it seems to work on my side:

    --INSERT INTO SpatialDemo (SpatialData)

    --test the select first:, then uncomment the INSERT INTO

    SELECT geography::Point(Latitude,...

    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: Insert into Spatial table

    looks like this page has some examples of the conversion; i haven't tried this yet:

    http://www.sql-server-helper.com/sql-server-2008/convert-latitude-longitude-to-geography-point.aspx

    I'm going to have to throw some time into studying this a bit;

    create table x(

    myLat ...

    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: search string in whole table

    is there a question in there somewhere? all you did was paste Narayana Vyas Kondreddi's well known search function.

    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 to convert Column data

    there's a difference between 'null'( a string literal) and the keyword NULL;

    since you are not replacing more than one result, you don't need the CASE statement in this instance.

    UPDATE dbo.LOCATION

    SET...

    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: Iterating trough a recordset, with a unknown nr. columns / and a identifier that is non sequential (1,2,3,4..)

    you need to wrap and alias the XML like this:

    Create Table #Results(

    id int identity(1,1) not null primary key,

    ResultsXML XML )

    INSERT INTO #Results(ResultsXML)

    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: C# CLR performance

    are you taking the network data transfer into consideration?

    on your local machine, the million rows go directly into memory; on the remote server, they have to travel over the network,...

    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: Performing queries on multiple servers

    a simple example:

    SELECT

    t1.*,

    t2.*

    FROM Databasename.dbo.Table t1

    INNER JOIN MyLinkedServer.DbName.dbo.OtherTable t2

    ON t1.ID = t2.ID

    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: Iterating trough a recordset, with a unknown nr. columns / and a identifier that is non sequential (1,2,3,4..)

    mvklingeren (4/8/2011)


    That is correct, so the conclusion is that i should create a two column width temp table

    First column IDENTITY,

    Second column, containing the XML string

    Would that be the right...

    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 - 7,771 through 7,785 (of 13,460 total)