Dead Easy String Handling Question

Aug 1, 2007

Hi there,

I'm a bit embarrassed about this question, because I'm sure that a lot of you would find it trivial, but I'm really not the best at T-SQL and especially not string handling.

I'm trying to generate a 'parent' value, by replacing characters in the 'child' field with '---'. It's a classic Chart of Accounts sort of problem, for feeding into a Parent/Child dimension in AS. It's a lot easier to understand if you look at this:

This is the set I have:

GLCode GLDescription
0.-.-.---- Balance S
0.0.-.---- Balance S.Balance Sheet
0.0.0.---- Balance S.Balance Sheet.Balance Sheet
0.0.0.5000 Balance S.Balance Sheet.Balance Sheet.Assets - Area1
0.0.0.5001 Balance S.Balance Sheet.Balance Sheet.Assets - Area2
0.0.0.5002 Balance S.Balance Sheet.Balance Sheet.Assets - Area3

This is the set I want

Ch GLCode Par GLCode GLDescription
0.-.-.---- -.-.-.---- Balance S
0.0.-.---- 0.-.-.---- Balance S.Balance Sheet
0.0.0.---- 0.0.-.---- Balance S.Balance Sheet.Balance Sheet
0.0.0.5000 0.0.0.---- Balance S.Balance Sheet.Balance Sheet.Assets - Area1
0.0.0.5001 0.0.0.---- Balance S.Balance Sheet.Balance Sheet.Assets - Area2
0.0.0.5002 0.0.0.---- Balance S.Balance Sheet.Balance Sheet.Assets - Area3


That is to say,
0.0.0.---- is the parent of 0.0.0.5001
0.0.-.---- is the parent of 0.0.0.----
0.-.-.---- is the parent of 0.0.-.----

So, what I really need to do is replace the last non '-' string with '-'. I've tried various combos of PATINDEX, CHARINDEX, REPLACE etc, but I'm really struggling. To make in more complicated, and of the strings between the . can be any length.

Any ideas?


View 9 Replies


ADVERTISEMENT

Detect Empty Tables (probably Dead Easy)

Feb 19, 2001

Hello,

does anyone know of a way that I can detect if a table is empty via a SQL Server job step?

Many thanks

DVNC

View 3 Replies View Related

EASY! Trim String?

Jan 25, 2007

I have values in a matrix takin too much space. Since they are just used as the matrix column header, cant i trim it or something. To display just the first 3 letters of the the attribute, and not the whole string? Whats the code for that?

=Fields!Collision_Type.Value thats my field right now.



Please help! thanks!

View 8 Replies View Related

Is There A Quick And Easy Way Of Getting A Connection String For My App

Mar 18, 2004

I'm wondering if theres some easy/simple way of getting what would be the connection string if say I was using visual studio? I'm just tired of having to fiddle with a db connection string because i've missed a letter or a comma.

View 5 Replies View Related

Handling Wildcard Characters In Query String

Nov 11, 2005

Hi

First interaction to the forum.
My Query is :

I had a User Management module in my application where I created a user with name

`~!@#$@%^&*()[_]+|}{":?><-=[[]];',./

Now I have a functionality to search for the user existing. For that give the search string or a single character and it finds out all the records containing the character.

How do I go about it as the SP i created for it gives correct results except the following

1. Search for % - Gives all record
2. Search for _ - Gives all records
3. Search for [ - Gives NO record
4. Search for the whole string - Gives NO Record

I handeled a few issues

1. replaced [ by [[]
2. replaced _ by [_]

So issues 2 & 3 are resolved.

Tried replacing % by [%] but did not work


Could someone plz help

Thanks in advance
Ashutosh

View 11 Replies View Related

T-SQL (SS2K8) :: Error Handling - String Or Binary Data Would Be Truncated

May 16, 2014

We have a wrapper procedure that i am looking at replacing shortly. Basic Layout is something like like

Create proc SP_Wrapper
as
SP_LogProc 'proc1','Start'
Exec proc1
SP_LogProc 'proc1','End'
SP_LogProc 'proc2','Start'
Exec proc2
SP_LogProc 'proc2','End'

SP_LogProc 'proc3','Start'
Exec proc3
SP_LogProc 'proc3','End'
....

You get the idea. So logproc just logs that the procedure has started or stopped to a table so we can monitor it easily.

The procedure is then run by an agent job every morning. This morning we had a little bit of an odd one. In the example above we effectively got to 'proc3' being started (as it was logged). However there was then an error of String or binary data would be truncated (severity 16 i believe). However when proc3 was then manually run it worked (the data was unchanged). Then going back proc2 works fine, and its actually proc1 that has the error.

I have looked through the procs in question (and the wrapper) and cant find any error handling that is relevent (there one try and catch block completely separate at the end of the wrapper procedure for a small routine).

View 5 Replies View Related

Dead Log

May 12, 2006

:cool:
what should i do . if my database having deadlock?
anyone?
thanks

View 2 Replies View Related

Dead Locks - Regarding

Jul 31, 2002

Sir,

This is top urgent Sir !

There are 2 tables for transaction. The header and tail tables. How do I insert records. if one is updated & another is not ? the sequence for tracking the records will fail. How do I deadlock the table for insert especially when I use stored procedures for 'Inserts'.

Sundar Raman S K

View 1 Replies View Related

Dead Lock

Jun 18, 2004

Hello !!!

I have 2 transactions, the first one has MANY updates to the table A and it finishes with a commit or rollback (ONLY AT THE END), the second one has only one insert into the table A that finishes with a commit or rollback, the problem is that the update process takes a long time to finish, and the insert process could be thrown during the first process, there's where I get everything locked cause the table A is locked and my java aplication gets stuck.

Note: When I execute each transaction independient I have no problems.

Is there any possibility to lock table A completly for the first transaction and release It for second one ??

Could you give me any suggestion of what to do step by step ?

Thanks !!!

View 2 Replies View Related

Dead Locks

Apr 23, 2008

Hi

could anyone pls tell me how to avoid deadlocks during as iam stuck up with this problem during large no of hits to server.



Iam a slow walker but i never walk back

View 2 Replies View Related

Bring Out Your Dead!

Mar 14, 2006

It's been pretty quiet on here recently - no-one experiencing any corruption problems we haven't already given guidance on? Cool...

Paul Randal
Lead Program Manager, Microsoft SQL Server Storage Engine + SQL Express
(Legalese: This posting is provided "AS IS" with no warranties, and confers no rights.)

View 20 Replies View Related

DEAD LOCKS

Dec 12, 2007

I have a Orders table, this has a Primary key on one Column
( OrderID )

We are using a Stored Proc to insert data into this table ( I am not
starting the Transaction in the stored Proc ) as its controlled by the front end written in C++.

when ever there is a update on this Orders table I move the record to the ordershistory table. ( I have a trigger in the CTOrders table
on INSERT and UPDATE )

The C++ App does an Async I/O. Offlate the App is experiencing a few dead locks during the day espicially at the market open and Close as this database is for the Trading System.

I need a few pointers as to start debugging this.

Thx

View 3 Replies View Related

Dead Lock

Jan 18, 2008

Trying to get SQL 2005 to report dead locks via email.

I performed the following
Execute Sp_configure ‘blocked process threshold’, 200

Then generated a deadlock
BEGIN TRAN

UPDATE CUSTOMER
SET CUSTOMER_NAME = 'F'
WHERE CUSTOMER_ID = '1'


WAITFOR TIME '17:52'

ROLLBACK TRAN

Then on another query ran this
SELECT CUSTOMER_NAME FROM CUSTOMER

In sp_who i see it blocked. and the select is waiting for the update.


But i do not get anything reported in logs for the dead lock.

I tried to set up an alert.
MSSQL$ASRCFHSQL2005:Locks
Number of Deadlocks/sec
Total
rises above 1


When doing the reconfigure is something supposed to be written to the logs..........

Trying to set up system so if any dead locks arise i am sent an email

Thanks

View 4 Replies View Related

Dead In The Water

Mar 18, 2008



I have a SQL Server 2005 system that has been running for about 2 years. This morning nothing will connect. SQL Server Agent will not start. It gives me the message


"The request failed or the Service did not respond in a timely manner. Consult the event log or other applicable error logs."

The error log only states the SQL Server Agent cannot connect to server CANSPEC-TMMCSQLDEV and it is shutting down.

When i try to logon to SQL Server using Management Studio i get the following message:


"A connection was successfully established with the server, but then an error occured during the pre-logon handshake. Provider: Shared Memory Provider, error: 0 - No process is on the other end of the pipe. Microsoft SQL Server Error : 233"

The help for this error states that it could be caused by the fact that SQL Server does not allow remote connections. I have remote connections turned on.

Any ideas??

View 5 Replies View Related

SQL-CLR - Is It A Dead Subject?

Feb 15, 2008

Microsoft products that are doing well tend to have very strong communities around them, and I am starting to get a bit disappointed with SQL-CLR. This forum seems fairly light, the links int he FAQ are broken, and the official SQL-CLR blog has no update since 2006..

Taking all of that into account I am forced to wonder, Is this a dead subject?

I am not trying to say that the people in this forum are doing something wrong, nor am i claiming that no one uses SQL-CLR (i am a user, thats why im here). But I did want to get the opinion of the group here of where they think this concept stands.

I think SQL-CLR can really be a good tool in the chest for various scenarios. I am for one using it to have a generic SQL-CLR Stored Procedure that can analyze small sets of data and move it into various buckets depending on validation rules built into the code. So far its working very well, but I admit it has not yet hit production so only time will tell. (Performance is always a concern of mine)

Regards,

Dmitry.
http://blog.lyalin.com

View 5 Replies View Related

Dead Lock

Mar 7, 2008

Hi There,
I was updating a Custome Error Log table in different Data Flow Task in a Package. Custom log table is being used to log the Redirect Rows which sent by a component if it has errors. So I am catching the error raised by componets and putting them all into one table. I thing this could be the cause for the following error. I am not sure Please help me out. What could be the cause of this error and how to prevent it?

SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005. An OLE DB record is available. Source: "Microsoft OLE DB Provider for SQL Server" Hresult: 0x80004005 Description: "Transaction (Process ID 71) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.".

View 9 Replies View Related

DB PROCESS IS DEAD

Jan 16, 2007

Dear Friends,

Please help me in below unexpected error.

Server Details:

HP Proliant DL385 G1, 142*6 GB
AMD Opteron „¢ Processor 280, 2.40 GHz
4.00 GB RAM, DVD ROM
Win2K3 R2, SP1 64bit

SQL Server Details:

SQL Server 2000 Enterprise Edition 32bit
Service Pack4

Network Details:

Clients can access the server by Terminal Server and also by Direct Connectivity.
The connectivity is provided by RF network Provider.

Application Details:

Application was designed by Power Builder 6.5.

Error Details:
If I divide my clients connectivity to the server then it is divided into 3 types

TYPE A >> Users inside my LAN using a DNS server they give the server name in their Parameter file to connect to the Database Server.

TYPE B >> Users who are in WAN connect to the server by Terminal Servers for Data Input.
Terminal Servers are inside my LAN.

TYPE C >> Users who are in WAN connect to the Server by Direct Connection for Reports and Print Out they give the IP address of the Database server directly in their Parameter files.

After every 6 to 7 days the ERROR DB Processes Dead comes to the TYPE C.
The error Numbers are 100025 and 100005.

At the same time TYPE A AND TYPE B are not getting any errors.

For further diagnosis I have taken a client machine to Net Meeting and taken his desktop in control. I have connected the client machine to the database server by ISQL in command prompt.

From Backend I can see that the SQL server has allocated a SPID to the client machine. After I have executed

1>SELECT * FROM SYSDATABASES
2>GO

It will return me all data but it will not show me how many rows selected or EOF.

After some time it will give me the prompt (3>) but without EOF and after that if I give another query then it will give the below error

DB-Library: Attempt to initiate a new SQL Server Operation with results pending.

DB-Library: Unexpected EOF from SQL Server. General Network Error. Check Your Documentation.
Net-Library error 10054: ConnectionCheckForData (CheckForData())
DB-Library: DBPROCESSES is dead or not enabled.
DB-Library: DBPROCESSES is dead or not enabled.
DB-Library: DBPROCESSES is dead or not enabled.
DB-Library: DBPROCESSES is dead or not enabled.

At the same time if I give IP address of another server then it works and TYPE A and TYPE B don€™t get any problem.

To stop this error I have to restart the server after that for again seven days it works and again the same problem.

I cant find anything I have checked tempdb, cache size but it is normal no abnormal activities.


No virus Issues.
Please advice.

Regards,
James


View 3 Replies View Related

Help On Dead Lock ??? :-(

Feb 4, 2008

Dear all,

I am build an application based on different WCF services which colect different type of data from an SQL database.
I can have up to 10 clients whcih could at a certain times collect the same data as a read or right operation.
I have run a test where I have only 2 clients, and I have been surprise to receive a nice error of dead lock process.

The error is as follow :

Transaction (Process ID 63) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction."

In the store procedure which I am suspected, not sure yet, I have been advise to use the

SET TRANSACTION ISOLATION LEVEL SERIALIZABLE;
but no help

According to what I could notice in my application, I have one process which insert rows in this table, while clients read the same table..but I guess dead lock need to investigate in a more better way and handle it anyway...

I am not a databse administrator so I have no idea how to handle such situation.

Thnaks for your help
regards
serge

View 21 Replies View Related

Dead Lock Occure

Jan 12, 2008

 Please help me to remove deadlock. Server Error in '/' Application.

Transaction
(Process ID 69) was deadlocked on lock resources with another process
and has been chosen as the deadlock victim. Rerun the transaction.



Description: An
unhandled exception occurred during the execution of the current web
request. Please review the stack trace for more information about the
error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException:
Transaction (Process ID 69) was deadlocked on lock resources with
another process and has been chosen as the deadlock victim. Rerun the
transaction.

Source Error:




Line 292: da.SelectCommand.Parameters.Add(HierCode3)Line 293: Dim ds As New DataSetLine 294: da.Fill(ds, "Employees")Line 295: Con.Close()Line 296: Dim dt As DataTable = ds.Tables("Employees")







Source File: C:InetpubwwwrootDTRVersion2.0Home.aspx.vb    Line: 294


Stack Trace:




[SqlException (0x80131904): Transaction (Process ID 69) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.] System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +857466 System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +735078 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +188 System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +1838 System.Data.SqlClient.SqlDataReader.HasMoreRows() +150 System.Data.SqlClient.SqlDataReader.ReadInternal(Boolean setTimeout) +214 System.Data.SqlClient.SqlDataReader.Read() +9 System.Data.Common.DataAdapter.FillLoadDataRow(SchemaMapping mapping) +156 System.Data.Common.DataAdapter.FillFromReader(DataSet dataset, DataTable datatable, String srcTable, DataReaderContainer dataReader, Int32 startRecord, Int32 maxRecords, DataColumn parentChapterColumn, Object parentChapterValue) +153 System.Data.Common.DataAdapter.Fill(DataSet dataSet, String srcTable, IDataReader dataReader, Int32 startRecord, Int32 maxRecords) +172 System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +175 System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +137 System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable) +83 _Default.LoadfromDB() in C:InetpubwwwrootDTRVersion2.0Home.aspx.vb:294 _Default.getData() in C:InetpubwwwrootDTRVersion2.0Home.aspx.vb:143 _Default.Page_Load(Object sender, EventArgs e) in C:InetpubwwwrootDTRVersion2.0Home.aspx.vb:30 System.Web.UI.Control.OnLoad(EventArgs e) +99 System.Web.UI.Control.LoadRecursive() +47 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061









Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42

View 3 Replies View Related

How To Solve Dead Lock

Jun 14, 2000

HI,
i am updating one table, this transaction and another transaction
causing the Dead lock.
How i have to resolve a Dead lock issue.

--venu

View 2 Replies View Related

DB-Library Process Dead

Feb 16, 1999

hi, I ran a query on a test database and got this error , does anyone tell me whatdoes it mean and how can I fix it

thanks
Ali
This command did not return data, and it did not return any rows

DB-Library Process Dead - Connection Brokenh

View 1 Replies View Related

Dead Lock Error

Jun 19, 2006

I'm having a transactional replication which replicates data every 1min.... and i got a job which runs every 15mins and pulls the reports from source db which is being replicated.

Some times when the replication is pushing the data the same time the job is trying to generate reports and as the table is being locked at the time of replication the dead lock issue is rinsing and the job is getting failed.

Please some one help me in solving this issue.

Thanks

View 1 Replies View Related

DBPROCESS Is Dead Or Not Enabled

Aug 18, 1998

Hello,

Can anyone help me how to solve this problem ?
I had message "DBPROCESS is dead or not enabled" from my Server SQL v.4.2.1b.

I hope anyone want to help me.

Regards,

Susan

View 3 Replies View Related

DB-library Process Is Dead

Nov 6, 1998

Hi All,

Would really like insights in determining how to fix the following problem.
( i did search the archives -- got nothing)

When I try to run query against the SQL server i get following message; Process 13 error "DB -library process dead", terminating connection.

Thanks a lot

Prasad

View 1 Replies View Related

DBPROCESS Is Dead Or Not Enabled

May 28, 2008

We are running application on Ms SQL Server connecting to PowerBuilder 7.0.3, using MSS Microsoft SQL Server 6.X driver.
We have recently migrated the SQL Server from 2000 to 2005 SP2, in which databases are still at compatability level 80.
The application runs perfectly for one week, but later we received some occassional reports from users that database connection breaks after a

certain idle period. Below are the errors, usually error 1 appears before error 2.

Error 1
A database error has occured.
Database error code: 10025
Database error message:
Select error: Possible network error: Write to SQL Server Failed. General network error. Check your documentation.

Error 2
A database error has occured.
Database error code: 10005
Database error message:
Select error: DBPROCESS is dead or not enabled.

We couldn't find any related errors in the SQL Server log. Does anyone has the idea of what's wrong or how to trace the connection brokerage?

View 3 Replies View Related

Dead Alert With WMI And Deadlock_graph

Dec 7, 2007



I set up a table, job and alert as described in this article on msdn:
http://msdn2.microsoft.com/en-us/library/ms186385.aspx

The alert is working fine but the job is failing with the following info:
Message
Unable to start execution of step 1 (reason: Variable WMI(TextData) not found). The step failed.

The info does seem to be posted in the log which is not where I wanted it. Anyone have any ideas what I have not got set up correctly? I have the trace on and works since the info goes to the log, but I would like it in the database not in the log.

Any help would be appreciated.
Thanks

Linda Leslie
Academic Information Technology & Libraries
University of Cincinnati

View 9 Replies View Related

Dead Lock Exception

Dec 11, 2007

hi,

i am having an exe application which runs every half an hour which will do some database operations, at the same time the web application will also uses the same DB when users acces the web application. at this time i am getting Dead Lock Exception as below, to avoid this what should i do. please guide me.


System.Data.SqlClient.SqlException: Transaction (Process ID 88) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlDataReader.HasMoreRows()
at System.Data.SqlClient.SqlDataReader.ReadInternal(Boolean setTimeout)
at System.Data.SqlClient.SqlDataReader.Read()
at System.Data.Common.DataAdapter.FillLoadDataRow(SchemaMapping mapping)
at System.Data.Common.DataAdapter.FillFromReader(DataSet dataset, DataTable datatable, String srcTable, DataReaderContainer dataReader, Int32 startRecord, Int32 maxRecords, DataColumn parentChapterColumn, Object parentChapterValue)
at System.Data.Common.DataAdapter.Fill(DataTable[] dataTables, IDataReader dataReader, Int32 startRecord, Int32 maxRecords)
at System.Data.Common.LoadAdapter.FillFromReader(DataTable[] dataTables, IDataReader dataReader, Int32 startRecord, Int32 maxRecords)
at System.Data.DataTable.Load(IDataReader reader, LoadOption loadOption, FillErrorEventHandler errorHandler)
at System.Data.DataTable.Load(IDataReader reader)
at B.DAL.LRQ.Select(String sLoanID)
at QN.Program.QNo()

View 2 Replies View Related

Brain-Dead Newbie - SQL Question

Sep 8, 2005

Any help is sincerely appreciated:I have data in a table that represents the following:Admin Visit Type            Registration Date         Discharge Date D                                    20050301                  20050301D                                    20050301                  20050301W                                   20050301                  20050301E                                    20050301                  20050301D                                    20050301                  20050302W                                   20050301                 20050303W                                   20050301                 20050311D                                    20050301                 20050301Patient Type is always and I for the records I want but there are also Patient Types = O which I don't care about..What I would like to do is accoumlate a counter on the number of Registrations per date as well as Discharges per date.There can be thousands of registrations per day as well as thousands of discharges per day.  So lets say I want to pass a date parameter to accumulate the total registrations and discharges per day.  I have beat my head against the desk for the last two days because I believe this is a simple query but I just cannot get the results I want  - so any help is greatly appreciated.   I have written the following sql but I do not get a sum of the total registrations and discharges and EXPR3 and Expr4 always equal each other which is not the case .  For example on 20040301 I have 88 registrations and 17 discharges but I can't ever get the correct totals...I wrote the following in Query Analyzer - but it does not work and I have went around in circles and have tried so many things I am just frustrated.........Declare @Parm_Beg_Date as nvarchar(8)Set @Parm_Beg_Date = 20040313
SELECT
Patient_Visit_Result_Master.PVR_Admin_Visit_Type,Patient_Visit_Result_Master.PVR_Patient_Type, Patient_Visit_Result_Master.PVR_Registration_Date,Patient_Visit_Result_Master.PVR_Discharge_Date, Count(Distinct(Patient_Visit_Result_Master.PVR_Registration_Date)) as Expr3,Count(Distinct(Patient_Visit_Result_Master.PVR_Discharge_Date)) as Expr4
FROM         Patient_Visit_Result_Master INNER JOINPatient_Visit_Result_Master Patient_Visit_Result_Master_1 ON Patient_Visit_Result_Master.PVR_Hospital_ID = Patient_Visit_Result_Master_1.PVR_Hospital_ID  AND @Parm_Beg_Date = Cast(Patient_Visit_Result_Master_1.PVR_Registration_Date as nvarchar(8))or@Parm_Beg_Date = Cast(Patient_Visit_Result_Master_1.PVR_Discharge_Date as nvarchar(8))
WHERE     (Patient_Visit_Result_Master.PVR_Admin_Visit_Type = 'E') AND (Patient_Visit_Result_Master.PVR_Patient_Type =  'I')  AND (Cast(Patient_Visit_Result_Master.PVR_Registration_Date as nvarchar(8)) = @Parm_Beg_Date)  OR    (Patient_Visit_Result_Master.PVR_Admin_Visit_Type = 'D') AND (Patient_Visit_Result_Master.PVR_Patient_Type =  'I')  AND (Cast(Patient_Visit_Result_Master.PVR_Registration_Date as nvarchar(8)) = @Parm_Beg_Date)
 Or (Patient_Visit_Result_Master.PVR_Admin_Visit_Type = 'W') AND (Patient_Visit_Result_Master.PVR_Patient_Type =  'I') and (Cast(Patient_Visit_Result_Master.PVR_Discharge_Date as nvarchar(8)) = @Parm_Beg_Date)
 Or (Patient_Visit_Result_Master.PVR_Admin_Visit_Type = 'D') AND (Patient_Visit_Result_Master.PVR_Patient_Type =  'I') and (Cast(Patient_Visit_Result_Master.PVR_Discharge_Date as nvarchar(8)) = @Parm_Beg_Date)
GROUP BY Patient_Visit_Result_Master.PVR_Admin_Visit_Type,Patient_Visit_Result_Master.PVR_Patient_Type, Patient_Visit_Result_Master.PVR_Registration_Date,Patient_Visit_Result_Master.PVR_Discharge_Date
Order By Patient_Visit_Result_Master.PVR_Admin_Visit_TypeThanks in advance

View 10 Replies View Related

Web Forms Became Dead Slow! URGENT!!

Jan 24, 2002

Our web forms have suddenly become dead slow.We use these forms to update certain tables.Both web serever and db servers are on different boxes. Db server seems to be working fine with no blocking and all other scheduled jobs are running in time on the db server.So what could be the reason??We even increased the default time out for these web forms but still getting the slow response or some times time out again.
Sheila.

View 1 Replies View Related

Replication 2000 - What If Publisher Dead

Feb 12, 2004

What if a Publication and Distribution server machine fail to work. Do I need to reinitiliaze the whole snapshot on a new machine and retransmit the data to the subscriber. Or can I make use of replication script to recreate the publication and distribution and then replicate to existing subscriber using same machine name?

Thanks

View 2 Replies View Related

Conversation Timers, Alive Or Dead?

Aug 7, 2007

What is actually happening when a conversation timer is being used in terms of the dialog_timer column in sys.conversationendpoints? For example, I was using the following query to tell me which conversation timers are currently running:


SELECT * FROM sys.conversation_endpoints

WHERE dialog_timer > '1900-01-01 00:00:00.000'



However, I have noticed that periodically the dialog_timer value goes back to '1900-01-01 00:00:00.000' and the query fails, starting up another timer. Then, the original timer magically appears again, working just fine. So, I changed to this query:


SELECT * FROM sys.conversation_endpoints

WHERE far_service

IN

(

'TimerService1',

'TimerService2',

'TimerService3',

)


But this seems like the long way around and doesn't really indicate that the timer is running or not, just that its present in the sys.conversationendpoints catalog view. What is the proper way to see if timers are running? If one dies for some reason, I need to restart it.

View 2 Replies View Related

Dead In The Water Cannot Install / Upgrade

Mar 6, 2008

Greetings
Attempting to upgrade standard edition to enterprise.

Tried running setup with the SKUUPGRADE switch per the documentation. Kept getting a modal message box that I had to use Control Panel to upgrade components. Searched Google & MSDN tried everything I found, no luck.

No problem, I'll backup, remove standard, and install enterprise.

Removed standard via control panel.

Ran Enterprise setup. On the setup screen everything is greyed out (e.g. disabled) except workstation components.

Install the workstation components, run it again, everything greyed out except workstation. Select again, says I have nothing to install.

Uninstalled via control panel.

Deleted the SQL Server directory from Program Files
Deleted all the files in WindowsTemp
Deleted every registry key with the words MicrosoftSQLServer in it.

Run install, everything greyed out except Workstation Components.

Okay I give up... Not sure what else to do except reformat the (#*$(@*&$(# computer which will take hours.

Any help would be greatly appreciated.

View 8 Replies View Related

Dead Link For Database When Moving To Other Computer

Apr 13, 2008

Dear all,
 I face a problem about linking the SQL express database. Originally, I work with my desktop at home. However, I need to take it outside with my laptop. Once I copy whole project to my laptop and use Visual Studio 2008 again to develop. The following message appear when I run some pages that need to connect the database:
 "An attempt to attach an auto-named database for file E:d drivedocAssignmentProgramming ProjectProgrammingSourceApp_DataASPNETDB.MDF failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share. "
How can I solve this problem? I think it is an absoultue address and logical address problem. Thanks a lot.
 Regards,
Eric Chan

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved