Viewing 15 posts - 16 through 30 (of 34 total)
is your InvoiceGuid unique as name suggests or it is also duplicated? IF it is then
select InvoiceGuid
...
May 30, 2006 at 4:05 am
Hi Peter,
This is really great!!
I use lists as param to stored procs to insert data into tables often, this function will come handy, I have written couple of parsing...
May 30, 2006 at 2:23 am
Use a trigger, that is the only solution i can think of!!
May 30, 2006 at 2:10 am
Query Analyser
Entrerprise Manager
SQL Profiler
PerfMon
Double Take
SQLCompare
---
May 25, 2006 at 9:35 am
you can use quotes around the values where you think data have "," in between.
e.g:
Select Id, '"' + isNull(Location) + '"', col2.. from table....
This will result in something like
1,"Spain,...
May 25, 2006 at 7:57 am
It would help if you paste your DDL.
If #temptable is created inside Sp_A, and it returns data, then SP_B will run with no issues..There might be some other issue inside...
May 25, 2006 at 7:02 am
TempDb will grow when you use temporary tables or variables to get data.
you can find the stored procs using trace...
May 25, 2006 at 6:56 am
John I agree with you, but sitll here is my solution::::
CREATE FUNCTION LeftPadZeros(
@Amount bigint,
@Length int
)
RETURNS varchar(20)
AS
BEGIN
DECLARE @retVal varchar(20)
DECLARE @HoldVal varchar(20)
DECLARE @CurLen int
set @HoldVal =...
May 25, 2006 at 3:56 am
Thanks Ryan for providing some good links. They are good.
May 24, 2006 at 5:08 am
Thanks John
I definitely have in mind to move that parsing code to a function.
May 24, 2006 at 4:41 am
It will be easier if you give table structure or columns from where to fetch data.
Thanks
May 24, 2006 at 3:33 am
Declare @Name Varchar(255)
Declare @ID_LIST Varchar(255)
Declare @Temp Table
(
Name varchar(255),
ID_LIST Varchar(255)
)
Declare cur1 scroll cursor for Select name from table1 group by Name
Open cur1
Fetch cur1 into @Name while @@Fetch_Status =0
Begin
Set @ID_LIST=null
Select...
May 16, 2006 at 4:23 am
do you want that in single query?
This cabe easily be achived by using cursors..
Thanks
May 16, 2006 at 4:12 am
CREATE Procedure GetCardNumber
as
BEGIN
SET NOCOUNT ON
Select dbo.fn_GetNumber(card_number) from candidates
SET NOCOUNT OFF
END
Hope this is what you want
Thanks
May 16, 2006 at 3:24 am
Viewing 15 posts - 16 through 30 (of 34 total)