Quantcast
Channel: Questions in topic: "sql-server-2005"
Browsing all 415 articles
Browse latest View live
↧

How to create a parent child hierarchy from full path (MSSQL)

I have a field/column in at table stored in MSSQL 2008 containing full paths of some documents. I need the paths transformed into a parent child hierarchy like shown below. I need this structure...

View Article


sql 2005 question

select isi,sum(maas) as "ÖDEME" from calisan where isi not like 'SATIŞ%' group by isi having sum(maas)>5000 order by sum(maas) What does this code ?

View Article


Can a char field contain a line feed?

My customer wants to store a multi-line text string in a char field. Is it possible to include a line feed when entering data on a form to be stored in a char field? Shift-Enter doesn't do it.

View Article

advice full transaction log / disk then large tempdb ***URGENT***

hi all i need some advice in the following situation. Detected sharepoint was bigger than it should be and had a 10gig tran log (in simple recovery). Ran DBCC shrinkdb to clear log and attempt to...

View Article

SAC utlity on named instance (Clustered)

Hi All, I need to run a command similar to below on a named instance on a Clustered server: **sac out outputfile –S servername -I Instance2\Instance2** But I get an error saying: Instance2\Instance2...

View Article


Search for table names with date in the name

Hi, I have some tables with names like: table20130301 table20130302 table20130303 and so on, one table for each day. I need to extract this date from the table name. then this date is to be compared to...

View Article

Need experts help for SQL Query

![alt text][1]I have two table #temp1 user and profile mapping and second #temp2 Profile and permission mapping. permissions in Some profiles are subset of other profile permission, I want to exclude...

View Article

Best Practice Year End Process for DB's

The previous DBA at my company always moved annual db to a new db instance and then created a new one for the current year. Ex: At the end of year, he renamed current db to CURRENTDB_2012 and then...

View Article


restoration of backup in sql 2005

Actually we have two environments with sql server 2005 database one is new environment and the other is older one. now there are updates happened in newer environment database, now client is asking to...

View Article


How many students were there on the 12th class day?

I need the SQL Query to find the how many students in a class.

View Article

sqlsrvr 2005 sql update execution plan

I have two test databases on the same server. The sql update exec plan for one database shows index updates and the other does not. Both test databases were restored from same backups. Why aren't the...

View Article

Error when upgrading to SQL Server 2008 R2 from 2005

Hi there I have Sql Server 2005 standard edition with SP4 and trying to upgrade to 2008 R2. I specify "Evaluation" edition when I do the upgrade as I dont have the licence key hoping this will let me...

View Article

Sql Query Rearranging

Can any one help me to rearrange this Query. This query return an error. the error is "Only one expression can be specified in the select list when the subquery is not introduced with EXISTS." SELECT...

View Article


SQL server 2005 connect database from vb6 and login help

kindly help me please -- need step by step to make username and password on sql server 2005 > login using vb6 to sql server 2005 --- and how to connect vb6 to sql server 2005 im using windows7...

View Article

Auto generate a user login report

I'm trying to create a report for the information below that runs automatically: Event Log Report - Records events including successful login, Create/Delete Account, An Account was Unlocked, Account...

View Article


logic required

hello all, i am new to development. i had a table where columns we have are idoc no,status,process date time. here the idoc number 1231 in the below table is having status error on 16th 20th and 23rd...

View Article

database insert

Hello All, i have 2 databases which are having the same schemas and tables, and these are in 2 different environments updates are happening continuously on both dbs. i need to insert the complete data...

View Article


fastest way to build table using join

I have to join table1 with 2.7 million records to a table with 75,000 records matching on a link1 or link2 using a left join to get all occurrences of matches. I need to place this data in a new table...

View Article

Need steps to change sql services account to a different account on sql...

Need steps to change sql services account to a different account on sql server 2005 active/passive cluster.

View Article

Attaching a Database that is in a Dirty Shutdown without the Transaction Logs

The drive that I had my transaction logs being saved to (it was separated) got corrupted and when attempting to re-attach the database I am unable to do so because it is in and unclean shutdown state....

View Article
Browsing all 415 articles
Browse latest View live