|
Here's a few of the new posts today on the forums. To see more, visit the forums.
about DTA
- I am using Database engine tunning advisor to tune my workload file which has adventureworks database related script.I want to...
Failed to Configure Mirroring
- Dear,
I had configured High safety without automatic failover (synchronous) mode mirroring successfully in SQL Server 2008 R2 . It was running...
send data in small size by backup is possible
- I have 2 branches database A,B same structure and objects different only in data i must take backup every day.but...
Automating Excel via SSIS and SQL Agent
- Hi
I have encountered an issue on a project that I'm rather struggling with and I'm hoping someone has encountered something...
Just accepted a Sr. DBA job. Time for a gut check?
- Hi SQLSC!
Buckle up, I apologize in advance for the long post. In many ways, typing it out is as much...
Use parameter value in .csv output filename
- Table_1
[code="sql"]
ESTAB_ID ESTAB_CODE FORENAME SURNAME
1 9009001 John Jones
1 9009001 Mike Smith
1 9009001 Mary Yates
2 9009005 Ann Ennis
2 9009005 Kelly Homes
3 9009014 Harry Brand
3 9009014 James Casey
3 9009014 Chris Balls
[/code]
Table_1 contains a list of people belonging to different establishments. The ESTAB_ID is a unique sequential ide
Use parameter value in .csv output filename
- Hit the send button in error. see my later post with the same title
Not seeing savings in sparse columns
- Ive ran a test comparing a table with a few sparse columns to a table with no sparse columns, and...
partition_id VS. hobt_id
- Hello!
There is 2 columns in [url=http://msdn.microsoft.com/en-us/library/ms175012.aspx]sys.partitions[/url] view - [b]partition_id[/b] and [b]hobt_id[/b]. From my point of view/experience for any given row from...
SSRS. Parameters mdx script doesn't work with multi-value
-
Hi ALL,
I need your your help!!
I want to create a report with multi-value parameters with SSRS.
So, I wrote this mdx...
unexplained deadlock
- Hi,
I'm using SQL Server 2008.
i have 2 different statements that lock each other, can you please explain why they are...
How to insert in batches WITHOUT using @@ROWCOUNT
- I have the specific insert query below, and it works fine if I have less than 20 records or so,...
even and odd records
- The sql code to find odd number of records is:
[code]select * from emp where (rowid,1) in (select rowid, mod(rownum,2) from emp);[/code]
But...
Query in SSRS
-
hi All ,i have one requirement where the SSRS report is displaying only certain data of a column based on...
how to get Mac Address in SSRS
- Hi,
I am having a requirement of taking the MAC Address using SSRS is it is possible to take?
My Requirement:
To...
fetch tables most often queried
- Is there a way to determine which tables of a database are being queried most often, sorted in descending order?
User tables in the system DBs. Are they affected by SPs and CUs
- Hello all, I have a client with several instances of SQL Server from 2000, 2005, & 2008, at various builds. They...
Need help with a select, insert
- GOAL: insert into tblcompanyassignments from tbluserassignments. Only attempt the insert for userid that exist in both tbluserassignments and tblexistingusers. For...
error in bulk copy
- Hi
I want to test some changes in the structure of a table and see the plan,I exported the data in...
cursor
- Hello,
Following is my requirement.
[quote][code="other"]
Table rows:
SLN Id StartDate EndDate Duration TimeElapsed
1 1 1/1/2012 10.12 1/1/2012 10.13 0day 00:01:00 0-days 00:01:00
1 1...
FOR XML and trying to avoid nested cursors
- Alright, history first. I've got a bit of a mess I've inherited. Groups inheriting groups inheriting... you get the drift....
Deletes taking long time
- I have a situation where I created I ran a query that generated about 32,000 individual deletes that I am...
expression in derived column issue
- I want to cretaed new column in derived column with default string valuve like
Column name Expression
TableName FactFDDCellQHourlyPegEricsson1
I have tried...
Select full month number (with 0)
- Hi,
I use
[code="sql"]DATEPART(month, myDate)[/code]
or
[code="sql"]MONTH(myDate)[/code]
the resut is: 2 (if myDate is 2013.02.03). I would like return: 02
Do you have any solution for...
Guidance on table valued types.
- We have 1 table valued parameter (tvp) coming to GetXXX stored procedures. It contains only 1 column of type uniqueidentifier....
Hierarchy example - Ken Henderson's book - not working
- I’m working on the hierarchy lesson in Ken Henderson’s The Guru’s Guide to Transact-SQL. He wants to show two things....
UDF Help
- Hi Guys,
I want to create UDF. Below is my logic. Please guide me where i am wrong.
Alter Function [dbo].[udf_GPList](@EID int,@PID...
Grouping sets
- Hi All,
how to use the groupingsets to a query having more than 32 columns
plz help out
can this update statement be made easier
- I am running an update statement as follows
UPDATE dbo.BigTable
SET BigTable.Software_Version_Raw =
( CASE
WHEN dbo.BigTable.Software_Version_Raw LIKE '1.%' THEN '1.x'
WHEN dbo.BigTable.Software_Version_Raw LIKE...
Group by and Where clause
- Hi,
Please see below,
Table name : Log_table
Columns: Logid int, databasename varchar(30), tablename varchar(30), logdate datetime
Query 1:
Select max(logdate) from log_table
where...
Replication synchronizing errors
- What all reason could be there for errors while synchronizing merge replication or transactional replication.
dbmirrroring
- can two mirroring sessions on single production server between diferrent sql instances use same endpoint and same port numbers
eg:
DBprincipal1....DBMirroring1 endpoint...
Confusion regarding which full-backup file to apply on secondary in Log shipping
- Hi we have a log shipping configured at one of client side and is out of shrink for log time...
SQL Server doesn't accept remote connections.
- Hello,
I am trying to use my SQL Server in my Perl application. I am hosting my Perl code on an...
Attach Database Error after moving MDF
- I needed to move the MDF to another location so I detached the database, and dragged the MDF to a...
Problem with Database mail
- We have SQL SERVER 2008 R2,which Database mail does not work properly.When I try to send test mail,it says it...
Database in Recovery mode while restoring it
- HI All, I need your to understand and resolve this issue.
I have initiated the backup script for a database which...
CPU considerations for multiple instances
- I've been researching this and haven't found much info so I'm not sure what most people do. Consider a server...
Can't Kill SPID “Transaction Rollback in Progress”
- I'm running into frequent Blocking on a Development Server.
I have been correctly the code or making recommendations to prevent this...
Risks/Best practices on execution policy
- While it would be easy to set the execution policy to unrestricted, or possibly set it to unrestricted in an...
Are the posted questions getting worse?
- Is it me, or are the posted questions getting worse these days?
I just read a post by someone apparently in...
SSRS. Parametres mdx script doesn't work with multi-value
- Hi ALL,
I need your your help!!
I want to create a report with multi-value parameters with SSRS.
So, I wrote this mdx...
|