Viewing 15 posts - 196 through 210 (of 455 total)
CREATE
FUNCTION [dbo].[GetTaskDesc] ( @Task_Code VARCHAR(20) )
RETURNS
VARCHAR Prasad Bhogadi
www.inforaise.com
January 29, 2007 at 9:50 pm
From your example try this out
Considering all your variables are of VARCHAR type.
DECLARE @sql VARCHAR(2000)
DECLARE @dc_prd_year1 VARCHAR(50)
DECLARE store1 VARCHAR(50)
DECLARE @sc_store VARCHAR(50)
SET
@sql = Prasad Bhogadi
www.inforaise.com
January 29, 2007 at 10:29 am
Take a look at the article below. It could be of some help.
INSERT-EXEC section @
http://www.sommarskog.se/share_data.html
Prasad Bhogadi
www.inforaise.com
January 29, 2007 at 10:14 am
From your experience on the system can you specify if both master and detail tables are getting inserted in the same transaction boundaries? Triggers are realtime solution but you may...
Prasad Bhogadi
www.inforaise.com
January 25, 2007 at 12:01 pm
Can you also specify how many columns are required to be compared. Cursor is very expensive method with respect to Performance.
Prasad Bhogadi
www.inforaise.com
January 24, 2007 at 9:27 am
Infact RIGHT function should also work
SELECT
CASE WHEN LEN(Incident_Details.Description) Prasad Bhogadi
www.inforaise.com
January 19, 2007 at 9:18 am
Also if you are going with your own engine do take care of indexes the appropriate columns that are used as part of your search.
Prasad Bhogadi
www.inforaise.com
January 19, 2007 at 8:59 am
In most cases than not, cursors impact the performance adversely for obvious reasons of looping through and hitting db. Just to experience what difference it makes with reference to the...
Prasad Bhogadi
www.inforaise.com
January 19, 2007 at 8:55 am
Can u check with the .txt or .csv extensions? Or please open your excel file and paste some data that has more than 256 characters in the first row and...
Prasad Bhogadi
www.inforaise.com
January 18, 2007 at 11:16 am
Better way is to format it prior to sending to the table from your frontend code or inside the query.
Prasad Bhogadi
www.inforaise.com
January 18, 2007 at 10:37 am
Well you need to write a On Insert trigger for that if you want it to be automatically get appended with '00' as suffix.
Prasad Bhogadi
www.inforaise.com
January 18, 2007 at 10:36 am
Save the file as CSV or txt and try importing. You can also refer to http://support.microsoft.com/kb/281517/EN-US/
Prasad Bhogadi
www.inforaise.com
January 18, 2007 at 9:58 am
Yes, CASE statements can be nested without any restriction.
Prasad Bhogadi
www.inforaise.com
January 18, 2007 at 9:12 am
Probably you can write a small function and call it. Something like this
CREATE FUNCTION GetSize(
@ProductNo VARCHAR(100),
@Description VARCHAR(100)
RETURNS VARCHAR(1000)
AS
BEGIN
DECLARE @Size VARCHAR(1000)
SET @Size = ''
SELECT @Size =@Size + CASE WHEN...
Prasad Bhogadi
www.inforaise.com
January 18, 2007 at 8:52 am
You can download the evaluation version from the microsoft site at:
Prasad Bhogadi
www.inforaise.com
October 23, 2006 at 3:41 am
Viewing 15 posts - 196 through 210 (of 455 total)