Forum Replies Created

Viewing 15 posts - 9,841 through 9,855 (of 13,460 total)

  • RE: Error:Calling procudure outside Management Studio

    Lukes right...that proc is returning more than one value;

    run the proc all by itself, or try this as a proof of concept:

    EXECUTE [db_name].[dbo].[proc_name]

    --or capture the results to 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: Ordering on every row...excep the first row

    you can use a case statement in the ORDER BY clause:

    ORDER BY

    CASE

    WHEN <something that makes the first row first>

    ...

    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: Intermittent Error - SQL Server does ot exist or access denied

    it does seem to me to be the WINS\DNS, wher ethe WINS service might not be returning the IP address connected to the name on th network;

    i assume your...

    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: DDL Triggers - How to verify they are enabled

    the key you are looking for is sys.triggers; i think you'd have to schedule a job to email if the condiftion of is_disabled = 1 is ever found.

    here's an example

    name...

    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 installation on other than c :\Drive

    I'd seen this question here before, and i believe the SQL Engine install can only occur on the %SystemDrive% drive; in most cases that is the C:\ drive;

    as already...

    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: The Transact-SQL debugger does not support SQL Server 2005 or earlier versions of SQL Server

    i think it is nothing more than clicking the green arrow/debug mode, when you should have hit execute:

    i confuse them myself, because the arrow in visual studio means "run";

    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 retrieve 100000 record from sqlite (Mobile Applications) ????!!!!!!!

    100K records is a lot to do anything to in compact edition; it's mostly up to the processor and indexing. are you just searching in compact edition? what exactly 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: Add business days to a date field

    jordon.shaw (3/12/2010)


    Having a calendar table was my first thought, but how do you populate that table? Do you have to manually enter 8+ years?

    Jordon

    Jordon here's a simple SQL 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: List Oracle Triggers from SQL Server 2005 Linked Server

    i think you should NOT include the user/schema:

    this should work instead, unless you are logging in a sys or system:

    SELECT * FROM LS20001...user_triggers

    also, Oracle can be picky on case sensitivity;

    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: Attribute to identify system databases

    I'm with Elliot; you can assume that the dbID < 4, but, on my SQL 2008, I have 6 db's i'd call system db's:

    master

    tempdb

    model

    msdb

    ReportServer

    ReportServerTempDB

    I think you are limited to using...

    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: Stored Procedure Problem Help!

    ok here's my assumption based on what you posted: the plan is to move the "Contact"'s address info into the Contact Table, instead of having it as a seperate reference...

    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: List Oracle Triggers from SQL Server 2005 Linked Server

    there are views in Oracle named USER_TRIGGERS or even ALL_TRIGGERS

    --specific table

    select * from user_triggers WHERE TABLE_NAME = 'TBTITLE'

    --owned by a specific user(equivilent to database)

    select * from user_triggers WHERE TABLE_OWNER =...

    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: Stored Procedure Problem Help!

    great scott!

    the structure really helps us understand the relationships of the data.

    now to the meat and potatoes of the issue;

    you said this:

    ...take information from one table within the database 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: Stored Procedure Problem Help!

    scott this looks an aweful lot like homework; we volunteer our time here to help you learn and understand concepts, so lets make sure we help you the right way.

    inserting...

    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: Datediff excluding weekends

    you can add a WHERE statment to eliminate the days, but which datefield? your sample has three fields that might be datetimes:

    new_lastupdatetime, createdon or new_timesupportcallreceived?

    select datename(dw,getdate())--Friday

    and do something like :

    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!

Viewing 15 posts - 9,841 through 9,855 (of 13,460 total)