Forum Replies Created

Viewing 15 posts - 12,076 through 12,090 (of 13,460 total)

  • RE: Calling a Stored Procedure from a View

    sounds like you want the results of sp_who in a view for example?

    simply sp_helptext sp_XXX, and read the code....maybe you can simply lift the code, or maybe you can convert...

    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: Load the data from excelsheet into a table in sqlserver 2000

    you could also attach the spreadsheet as a linked server, and then select from it as well;

    here's an example, which adds the linked server "MySpreadSheet", just change the path 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: Using a temporary table

    it sounds like you are doing everything right...

    here's a basic example of a select into:

    select top 5 * into #Table1 from sysobjects

    Select * from [#Table1]

    that works fine on 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: Parsing T-SQL

    doc_sewell (7/10/2008)


    The problem is that our application needs to evaluate strings before they are submitted for processing. and these strings may contain variables, e.g.,

    " select *from t where 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: Return Error 2147217873

    I'm pretty sure that error 2147217873 is a foreign key violation;

    ie

    Error Code : -2147217873

    INSERT statement conflicted with COLUMN FOREIGN KEY constraint 'FK_ForeignKeyName'. The conflict occurred in database 'DatabaseName',...

    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: Find last access

    As you already suspected, In SQL2000, there's not much you can do.

    If all your databases have the database recovery model set to "FULL" instead of "SIMPLE", you could use 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: T-SQL Equivalent to MS Access'' "First" function

    Stephen is kind of right, as long as you ignore some stuff.

    unless you've added a primary key to the table, because Access is file based, Access really does keep 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: truncate value in a table

    from Query analyzer or SQL 2005 Management Studio:

    exec AddSystemEvent 12,'06/09/2008',-21,'Some Bad Event Occured that probably should not have.'

    note the scanner id example i put in an arbitrary number of 12,...

    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: truncate value in a table

    maybe i'm just misreading it, but you want to insert just 255 chars right?

    CREATE PROCEDURE [dbo].[AddSystemEvent]

    (

    @ScannerID As Int,

    @TimeDate DateTime,

    @EventID As Int,

    @EventDesc NVarchar(256)

    )

    AS

    Begin

    Insert Into tb_system_event

    (Scanner_ID, Time_Date, Event_ID, Event_Description)

    Values (@ScannerID, @TimeDate,...

    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: Installing SQL Server on windows xp sp 2

    sazzemokhalef (6/9/2008)


    HI Guys

    installing SQL server enterprise edition on Windows XP is possible!

    I'm sure! I will put the solution in a few days!

    installing Enterprise Edition of SQL Server on a non-Server...

    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: Convert RTF data

    I just used the package and deployment wizard on a vb6 project that only had a richtext object on it;

    this is a list of all the dll's the wizard selected...

    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: REMOTE CONNECTIVITY TO SQL EXPRESS

    i think alimcitp has nailed it; your connectionstring doesn't have a username/password or integrated security:

    you need to know your machine name; the constring you had was clearly incorrect.

    it's machinename\instnacename,port

    so if...

    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: Ledger Balance Calculation

    When I perform an Insert into the Transaction table I update the Ledger. For the most part this is a simple case of inserting the required data, the issue comes...

    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: REMOTE CONNECTIVITY TO SQL EXPRESS

    additionally, if you are running any operating system with windows firewall, you will need to add an exception for sql server...you have to browse to sqlserver.exe for each service you...

    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 generate report image with CLR Sproc, cannot access System.Drawing on any non-sql project assemblies.

    I was trying a similar project...wanted to make a CLR that simply dumped RTF into an RTF object and returned it's .Text property, and found it was not allowed in...

    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 - 12,076 through 12,090 (of 13,460 total)