Viewing 15 posts - 16 through 30 (of 41 total)
ya now I know the table structure of two table returning
they are dif from each other
i want to move each of them to sepatrate tables
how ??//
October 25, 2013 at 12:24 am
2013-09-26 19:59:45 Slp: Log provider 'Microsoft.SqlServer.Chainer.Infrastructure.LogProviderFile' has been registered
2013-09-26 19:59:45 Slp: Log provider 'Microsoft.SqlServer.Chainer.Infrastructure.LogProviderStatus' has been registered
2013-09-26 19:59:45 Slp: Reading XML resource 'Microsoft.SQL.Chainer.PackageData.Package.xml'
2013-09-26 19:59:45 Slp: Reading schema resource 'Microsoft.SQL.Chainer.Package.Package.xsd'
2013-09-26 19:59:45...
September 26, 2013 at 9:08 am
summary:
Overall summary:
Final result: SQL Server installation failed. To continue, investigate the...
September 26, 2013 at 9:02 am
CREATE TABLE addrname(addnam varchar(50))
insert into addrname
values('roshan,hrithik(india)')
go
create table separated(firstname varchar(50),lastname varchar(50),address varchar(50))
go
insert into separated
select
SUBSTRING(addnam,PATINDEX('%,%',addnam)+1,PATINDEX('(%',addnam)-1-PATINDEX('%,%',addnam))as firstname,
SUBSTRING(addnam,0,PATINDEX('%,%',addnam))as lastname,
SUBSTRING(addnam,PATINDEX('%(%',addnam)+1,PATINDEX('%)%',addnam)-1-PATINDEX('%(%',addnam))as address
from addrname
it looks messy check if it works for you
September 24, 2013 at 5:20 am
how to disable it i haven't installed it .
where to find it.
September 24, 2013 at 4:46 am
i tried same thing in google chrome its showing tooltip
in image
----
google chrome
Version 29.0.1547.66 m
try to change the version
----
another option is going to registry and changing option as in...
September 20, 2013 at 2:28 am
CREATE TABLE [dbo].[gotilla](
[ID] [int] NULL,
[Category] [varchar](50) NULL,
[Weekof] [varchar](50) NULL,
[Total_hur] [int] NULL
)
select category ,id,Sum(case when weekof='7/2/2012'then total_hur end)as '7/2/2012',
SUM(case when weekof='7/16/2012'then total_hur end)as '7/16/2012',
SUM(case when weekof='7/9/2012'then total_hur end)as '7/9/2012'
from gotilla
group...
September 20, 2013 at 1:15 am
create function returnnumerics(@inputword varchar(256))
returns varchar(256)
as
begin
declare @indexpositon int
set @indexpositon=PATINDEX('%[^0-9.]%',@inputword)
while @indexpositon>0
begin
set @inputword=STUFF(@inputword,@indexpositon,1,'')
set @indexpositon=PATINDEX('%[^0-9.]%',@inputword)
end
return isnull(@inputword,0)
end
try this query let me it works for you
September 19, 2013 at 6:43 am
ya thanks guys I got it.
I have basic knowledge of sql.
Actually I am just restoring to a new database .
ya i used sql server agent thanks.
September 12, 2013 at 11:08 pm
ROUGH and lengthy query if you have more records ..
using some other method i think you can make it short
SELECT A.P,A.AGENCY1,A.AMOUNT1,B.AGENCY2,B.AMOUNT2 FROM
(select PROJECTID AS P, AGENCY AS...
August 22, 2013 at 4:34 am
thank you very much
yes your query is shorter and faster than main?
there is another problem?
I want result to be like this
time ...
August 14, 2013 at 3:48 am
try this
with pvt
as
(
select customertypepvt,sumpvt
from dbo.Customersnumber
unpivot
(
sumpvt for customertypepvt in([LoyalCustomers]
,[DiscountCustomers]
...
June 29, 2013 at 5:09 am
how for xml path('') works here to get all values in single row?please explain
thanks and regards
sudarshan
June 26, 2013 at 12:11 am
I THINK
your flat file content is not arranged as matching to database table, add commas(,) correctly between as shown below .use below edited data as flat...
June 25, 2013 at 4:20 am
Viewing 15 posts - 16 through 30 (of 41 total)