Viewing 15 posts - 16 through 30 (of 113 total)
pls check below link ....
http://www.codeproject.com/Articles/368530/Dynamic-Excel-file-loading-with-SSIS
December 4, 2012 at 9:04 pm
pls check below code:
declare @t1 table(id int,name varchar(10))
insert into @t1(id,name) values(1,'1'),(2,'2'),(3,'4'),(4,'7'),(5,'8_'),(9,'9'),(10,'0')
select id,CONVERT(int,replace(name,'_','')) from @t1
--CONVERT(int,replace(name,'_','')) from @t1
where name like '%[^0_9]%'
here name will come between 0 and 9 (zero,nine...
November 28, 2012 at 2:39 am
please check below codes.....
declare @t1 table(id int,name varchar(10))
insert into @t1(id,name) values(1,'A'),(2,'B'),(3,'C'),(4,'D'),(5,'E'),(6,'F'),(7,'G'),(8,'H'),(9,'I'),(10,'J')
declare @t2 table(id int,name varchar(10))
insert into @t2(id,name) values(1,'A'),(2,'B'),(3,'C'),(6,'F'),(8,'H')
----------------------LEFT JOIN------------------
select T1.ID, T1.Name
from @t1 t1
left outer join @t2 t2 on t1.id=t2.id
-------------------RIGHT JOIN...
November 28, 2012 at 12:04 am
if you will use ssis
pls follow given steps.
(1)create excle connection..
(2) go to excel sourse after that Data acess mode:sql commane
...
November 19, 2012 at 4:26 am
pls try below code
select * from table where right(ltrim(rtrim(name,3)))='red'
or left(ltrim(rtrim(name,3)))='red'
November 19, 2012 at 3:28 am
PLS TRY BELOW CODE
CREATE TABLE #Companies (CompanyID int)
INSERT INTO #Companies (CompanyID) VALUES (1)
INSERT INTO #Companies (CompanyID) VALUES (2)
INSERT INTO #Companies (CompanyID) VALUES (3)
CREATE TABLE #CompanyGroups (CompanyGroupID char(1), CompanyID int)
INSERT INTO...
November 15, 2012 at 10:14 pm
pls apply ltrim(rtrim()) function where class columns.....
November 2, 2012 at 4:01 am
this error is version related problem....
pls try below steps...
(1) open your SSIS Package related solution explorer
next go to properties
next go to dedugging
next chage below mentioned property.
RUN...
November 2, 2012 at 3:01 am
if already table structure in there in database you fellow below logic..
INSERT INTO table2 (Col1, Col2, Col3)
SELECT Col1, Col2, Col3 FROM table1
if table is not there in data that fimt
follw...
November 2, 2012 at 2:54 am
for excel one data flow under that 2 oledb sourse is there.
one for to load data from 12 server to 60 server
second one load dada from 13 server to...
November 1, 2012 at 5:37 am
pls provide ddl data based on that data i will provide query...
November 1, 2012 at 4:50 am
PLS try below code....
SUBSTRING([Column 0],FINDSTRING([Column 0],"PAT",1),FINDSTRING(SUBSTRING(FINDSTRING([Column 0],"PAT",1),LEN([Column 0])),"~",1))
October 29, 2012 at 10:34 pm
pls check below code...
declare @var_chr char(50)='abc'
declare @var_varchr varchar(50)='abc'
select DATALENGTH(@var_chr) chr,DATALENGTH(@var_varchr) var
O/P:chrvar
503
October 29, 2012 at 10:20 pm
Pls check where you created FK_EmployeeLocDtl_DepartmentMaster foreign key table that column data type,master table column data type are same oher wise it will not allow that operarion....
pls follw below steps:
create...
October 26, 2012 at 2:30 am
Viewing 15 posts - 16 through 30 (of 113 total)