Viewing 15 posts - 166 through 180 (of 405 total)
I think you need to find a diffferant way to acheive this. Inserted virtual table has the same definition as of the real table so the studentname column will capture...
May 12, 2013 at 9:15 pm
You are using dynamic string so the type of the variable does not matter.
Moreover you are getting this error when trying to concatenate the integer variable with varchar string 'Select...
April 5, 2013 at 12:15 am
Try
set @table_query='SELECT [ID], [Question_ID] FROM ['+@table+'] WHERE [Section_ID]='+convert(@sec_id as varchar(50))
April 4, 2013 at 11:58 pm
Hi, you can acheive this through dynamic scripts. First you should find out the list of indexes in the particular filegroup. You can use sys.partitions to get this data.
select Object_ID,Index_id...
March 31, 2013 at 9:18 pm
Filestream is the most efficient way to store unstructured data, and is available since 2008
You need to enable filestream for the database and add a filestream filegroup.
Alter the table...
March 20, 2013 at 9:00 pm
Alan,
What you need to do is right click the Both tables in SSMS, select Script table as Create , paste the code in the forum. Otherwise whatever suggestions we...
March 6, 2013 at 9:18 pm
You should look at the queries found in the deadlock trace and the resources that are being locked. You can try tuning these queries. But sometimes you may need to...
March 4, 2013 at 7:44 pm
You are probably looking for constraint expression.
Check here
http://blogs.msdn.com/b/mattm/archive/2006/10/30/using-expression-based-constraints.aspx
March 4, 2013 at 2:46 am
ManiDBLover (3/4/2013)
Hi,I agree with your point. But if i have more columns you mean to say i need seperate seperate tables?
Not really. The I dea is to think of all...
March 4, 2013 at 2:18 am
MyDoggieJessie (3/3/2013)
Table A: (Master)PCID (PK)
ComputerName
OS
OSVersion
Manufacturer
Table B:
PCID (FK)
SoftwareName
SoftwareVersion
SoftwareLiscencekey
Installedversion
?
Or you could go really crazy and create an OS, Manufacturer, Software table - but that'd probably be overkill 🙂
No, no . It will...
March 4, 2013 at 12:21 am
Backup contains only used pages (If it is full backup). No use of shrinking the database.
If it is a differential backup, it contains all pages changed since last Full backup.
So...
March 3, 2013 at 10:21 pm
I am still not clear why your update is not working. One thing, your case statement should be changed
update dbo.BigTable set BigTable.Software_Version_Raw =
case
when CHARINDEX('.',Software_Version_Raw,0) >0 then
substring(Software_Version_Raw,0, CHARINDEX('.',Software_Version_Raw,0)...
March 3, 2013 at 10:02 pm
We both wrote the examples with assumptions that you have only two patterns, if not you can go with the case stament itself
create table #SoftwareTest
(
SoftVersion varchar(500),
SoftVersionUpdated varchar(500)
)
insert into #SoftwareTest...
March 3, 2013 at 9:00 pm
Jeff Moden (3/3/2013)
UPDATE...
March 3, 2013 at 8:35 pm
alan
Try something like this
create table #SoftwareTest
(
SoftVersion varchar(500),
SoftVersionUpdated varchar(500)
)
insert into #SoftwareTest (SoftVersion)
Select '10.78.5'
union
Select '1.78'
union
Select '2'
union
Select '4.5'
union
Select '20.5'
union
Select '4'
union
Select '8.63.0'
union
Select '10'
union
Select '4.56.89'
update #SoftwareTest set SoftVersionUpdated=
case when CHARINDEX('.',SoftVersion,0)...
March 3, 2013 at 8:23 pm
Viewing 15 posts - 166 through 180 (of 405 total)