Showing posts with label specific. Show all posts
Showing posts with label specific. Show all posts

Friday, March 30, 2012

Manage Permissions Script

How can I create a script that will set all the permissions for a specific user for some objects in a database?
Thx in advance.How can I create a script that will set all the permissions for a specific user for some objects in a database?
Thx in advance.

What kind of permissions are you trying to set? Are you trying to copy permissions from an existing user? Or are you trying to grant specific privileges on all objects? Or specific privileges on specific objects?

Please amplify your question a bit.

Regards,

hmscott|||I want to grant (or not) someprivileges on specific objects.
I made something like that:
GRANT SELECT ON [dbo].[AGENT] TO [web]
GO
DENY UPDATE , INSERT , DELETE ON [dbo].[AGENT] TO [web] CASCADE
GO

Actually, my problem is that I have to deploy my stored procedures on another server where these settings should be set up.
But it looks when I made my export to that server I lost the grants for my user.
That's why I thought it will be nice to have a script that will make the job automatically.
Anyway, I should change the way I made the export because I have checked up the option "Drop destinaton objects first".

Monday, March 26, 2012

making reports with xml data source

Can i make a report from non sql-server data source ?
To be specific:
I have an xml data source, and i built the dataset from the xml,by VIsual
Studio -DotNet [by Code],
can i bound reporting services 2000 to this dataset as datasource?
if NO, can we do it in sql server Reporting Services 2005?
thanks in advanced
Oren.On Sun, 10 Apr 2005 00:11:05 -0700, Oren Said <Oren
Said@.discussions.microsoft.com> wrote:
>Can i make a report from non sql-server data source ?
>To be specific:
>I have an xml data source, and i built the dataset from the xml,by VIsual
>Studio -DotNet [by Code],
>can i bound reporting services 2000 to this dataset as datasource?
>if NO, can we do it in sql server Reporting Services 2005?
>thanks in advanced
>Oren.
See, "Using an External Dataset with Reporting Services" in BOL for RS
2000.
Andrew Watt
MVP - InfoPath|||The new controls (available with beta 2 of Widbey) should allow this. Unitl
the controls are out and being used I'm not guaranteeing that but it is my
understanding that they will allow this (both a web and winform control
will be available).
Bruce Loehle-Conger
MVP SQL Server Reporting Services
"Oren Said" <Oren Said@.discussions.microsoft.com> wrote in message
news:B8E667B7-78EA-4A2F-92FC-9B230ABCCE6A@.microsoft.com...
> Can i make a report from non sql-server data source ?
> To be specific:
> I have an xml data source, and i built the dataset from the xml,by VIsual
> Studio -DotNet [by Code],
> can i bound reporting services 2000 to this dataset as datasource?
> if NO, can we do it in sql server Reporting Services 2005?
> thanks in advanced
> Oren.|||Here are some options for today:
Customize your own XML datasource for SQL Server 2000, and cosume the
webservice from SQL and acces those objects from the report (SQLRS)
Customize you own BOL for use XML as datasources, (make sure your BOL
support more than 10k records)
Wait for SQL 2005, certainly MS will have something available (its the
promess)
Thanks
Jerry
--
Call a WebService from SQL Server 2000
http://www.rdlcomponents.com/EXSP/default.aspx
WebService Data Processing Extension
http://www.rdlcomponents.com/DTE/Default.aspx
"Bruce L-C [MVP]" wrote:
> The new controls (available with beta 2 of Widbey) should allow this. Unitl
> the controls are out and being used I'm not guaranteeing that but it is my
> understanding that they will allow this (both a web and winform control
> will be available).
>
> --
> Bruce Loehle-Conger
> MVP SQL Server Reporting Services
> "Oren Said" <Oren Said@.discussions.microsoft.com> wrote in message
> news:B8E667B7-78EA-4A2F-92FC-9B230ABCCE6A@.microsoft.com...
> >
> > Can i make a report from non sql-server data source ?
> >
> > To be specific:
> >
> > I have an xml data source, and i built the dataset from the xml,by VIsual
> > Studio -DotNet [by Code],
> > can i bound reporting services 2000 to this dataset as datasource?
> >
> > if NO, can we do it in sql server Reporting Services 2005?
> >
> > thanks in advanced
> >
> > Oren.
>
>sql

Friday, March 23, 2012

Making a table viewable or not on specific page

Hi
I want to make a table or even a row to be visible on the first and the
last pages only. Any suggestions on how to do it will be helpful.
thanxIf you want a table or row to be visible only when on the last page you could
try the following expression in the table's/row's Hidden property:
=iif(Globals!PageNumber = Globals!TotalPages, False, True)
If you want it to appear only on the first page try:
=iif(Globals!PageNumber = 1 , False, True)
HTH,
Magendo_man
"Aquariun25" wrote:
> Hi
> I want to make a table or even a row to be visible on the first and the
> last pages only. Any suggestions on how to do it will be helpful.
> thanx
>|||Sorry, ignore previous suggestion. These Global values can only be used in
page headers and footers!
"magendo_man" wrote:
> If you want a table or row to be visible only when on the last page you could
> try the following expression in the table's/row's Hidden property:
> =iif(Globals!PageNumber = Globals!TotalPages, False, True)
> If you want it to appear only on the first page try:
> =iif(Globals!PageNumber = 1 , False, True)
> HTH,
> Magendo_man
> "Aquariun25" wrote:
> > Hi
> > I want to make a table or even a row to be visible on the first and the
> > last pages only. Any suggestions on how to do it will be helpful.
> > thanx
> >
> >sql

Monday, March 19, 2012

Make SQL Profiler *NOT* show events with blank application names?

I want SQL Profiler to show me events for 1 specific application. Currently,
I can get it to show me events for that application along with all events
that have no application name. I've tried having just an ApplicationName
LIKE <my-application-name> filter (no NOT LIKE filter), or having an
ApplicationName LIKE <my-application-name> and NOT LIKE '% %' (I couldn't
get it to take just a blank), but I still get events for applications with
no name. Any other ideas? Thanks.
Rick
--
Rick Genter
Sr. Software Engineer
Silverlink Communications
rgenter@.silverlink.com.REMOVERick Genter (rgenter@.silverlink.com) writes:
> I want SQL Profiler to show me events for 1 specific application.
> Currently, I can get it to show me events for that application along
> with all events that have no application name. I've tried having just an
> ApplicationName LIKE <my-application-name> filter (no NOT LIKE filter),
> or having an ApplicationName LIKE <my-application-name> and NOT LIKE '%
> %' (I couldn't get it to take just a blank), but I still get events for
> applications with no name. Any other ideas? Thanks.
I've battled with this myself, but without success. I either end with
filtering on something else, or removing events which does not fill
the column.
Erland Sommarskog, SQL Server MVP, sommar@.algonet.se
Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinfo/productdoc/2000/books.asp|||That's what I was afraid of. Thanks, Erland.
"Erland Sommarskog" <sommar@.algonet.se> wrote in message
news:Xns94659E447C26Yazorman@.127.0.0.1...
> Rick Genter (rgenter@.silverlink.com) writes:
> > I want SQL Profiler to show me events for 1 specific application.
> > Currently, I can get it to show me events for that application along
> > with all events that have no application name. I've tried having just an
> > ApplicationName LIKE <my-application-name> filter (no NOT LIKE filter),
> > or having an ApplicationName LIKE <my-application-name> and NOT LIKE '%
> > %' (I couldn't get it to take just a blank), but I still get events for
> > applications with no name. Any other ideas? Thanks.
> I've battled with this myself, but without success. I either end with
> filtering on something else, or removing events which does not fill
> the column.
>
> --
> Erland Sommarskog, SQL Server MVP, sommar@.algonet.se
> Books Online for SQL Server SP3 at
> http://www.microsoft.com/sql/techinfo/productdoc/2000/books.asp

Monday, March 12, 2012

Majority Node Set SQL cluster Or ?

S it possible to set up SQL cluster like MNS, without having common share
drives ? or without vendor specific solution.
Target is to have high-availability, but have no SAN or share SCSI drives
available.
I can set up mirroring, at the moment these is the only solution that I
thing is possible. Both servers are in same location.
MNS only removes the need for a shared Quorum Disk, you still need disks for
your SQL data to be shared disks
"Mr.B" <MrB@.discussions.microsoft.com> wrote in message
news:39BE540E-15FA-4CB9-811D-2B1279B0CA61@.microsoft.com...
> S it possible to set up SQL cluster like MNS, without having common share
> drives ? or without vendor specific solution.
> Target is to have high-availability, but have no SAN or share SCSI drives
> available.
> I can set up mirroring, at the moment these is the only solution that I
> thing is possible. Both servers are in same location.
>
|||Thank you. I will set up miroring.
"Edwin vMierlo [MVP]" wrote:

> MNS only removes the need for a shared Quorum Disk, you still need disks for
> your SQL data to be shared disks
>
> "Mr.B" <MrB@.discussions.microsoft.com> wrote in message
> news:39BE540E-15FA-4CB9-811D-2B1279B0CA61@.microsoft.com...
>
>

Monday, February 20, 2012

Maintenance Plan Wizard doesn't see my DB

Using SQL2005-Std, the Maintenance Plan Wizard doesn't see my database. My
database is not listed in the dialog box where you select specific databases
to backup. I see AdventureWorks, AdventureWorksSW, master, model and msdb.
Object Explorer doesn't show "msdb". Maybe it is my DB ? Strange because my
DB has another name and is configured as SQL7 compatible.
--
Francois PIETTE
http://www.overbyte.beMaint plan doesn't support database in 70 or lower compat mode.
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Francois PIETTE" <fpiette@.newsgroups.nospam> wrote in message
news:%23C5Jhp8aHHA.4176@.TK2MSFTNGP02.phx.gbl...
> Using SQL2005-Std, the Maintenance Plan Wizard doesn't see my database. My
> database is not listed in the dialog box where you select specific databases
> to backup. I see AdventureWorks, AdventureWorksSW, master, model and msdb.
> Object Explorer doesn't show "msdb". Maybe it is my DB ? Strange because my
> DB has another name and is configured as SQL7 compatible.
> --
> Francois PIETTE
> http://www.overbyte.be
>|||Hi, Francois,
I understand that you could not see your database with compatibility level
70 in your Maintenance Plan.
If I have misunderstood, please let me know.
This is a known by design issue. Tibor has explained the reason here.
For now, the workaround is that you change the compatibility level to 80 or
90.
Please feel free to let us know if you have any other questions or concerns.
Have a good day!
Best regards,
Charles Wang
Microsoft Online Community Support
=====================================================Get notification to my posts through email? Please refer to:
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications
If you are using Outlook Express, please make sure you clear the check box
"Tools/Options/Read: Get 300 headers at a time" to see your reply promptly.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
======================================================When responding to posts, please "Reply to Group" via
your newsreader so that others may learn and benefit
from this issue.
======================================================This posting is provided "AS IS" with no warranties, and confers no rights.
======================================================|||> I understand that you could not see your database with
> compatibility level 70 in your Maintenance Plan.
Right.
> This is a known by design issue. Tibor has explained the reason here.
> For now, the workaround is that you change the compatibility
> level to 80 or 90.
> Please feel free to let us know if you have any other questions or
concerns.
I have an existing application running with SQL version 7 that I want to run
on SQL2005. That's why I selected compatibility level 70.
a) If I change the compatibility level to 80 or 90, what kind of problem
could I have ? I have to say that I have no control over the application and
will not be able to fix any request or stored procedure.
b) Is changing the compatibility level a revertible process ? If I change
the compatibility level from 70 to 90, then create the maintenance plan, can
I go back to level 70 and still use the maintenance plan and the DB ?
c) If none of the above strategy work, how am I supposed to automate backup,
integrity check, reindexation and all similar maintenance tasks wih the
"level 70" database ?
--
Francois PIETTE
http://www.overbyte.be|||Hi,
For your three questions, please see the following answers:
>a) If I change the compatibility level to 80 or 90, what kind of problem
> could I have ? I have to say that I have no control over the application
and
> will not be able to fix any request or stored procedure.
If there are some features or functionalities that SQL Server 2005 does not
support but still exist in your application, it may not work.
Please refer to:
SQL Server 2005 Database Engine Backward Compatibility
http://msdn2.microsoft.com/en-us/library/ms143532.aspx
Since it is critical to your application, I do not recommend that you
change the compatibility level. You may consider to write T-SQL script and
execute it in SQL jobs. Anyway this depends on your requirements. Could you
please let us know what your requirements are?
> b) Is changing the compatibility level a revertible process ? If I change
> the compatibility level from 70 to 90, then create the maintenance plan,
can
> I go back to level 70 and still use the maintenance plan and the DB ?
Yes, the database can change back to 70 if the SQL Server 2005 new features
were not used in your database; For the maintenance plan, I recommend that
you established a test environment to check if it still work since I have
not found any document talking about this issue.
>c) If none of the above strategy work, how am I supposed to automate
backup,
>integrity check, reindexation and all similar maintenance tasks wih the
>"level 70" database ?
As I replied in your first question, you can write T-SQL statement in one
or several SQL jobs and schedule them to run. For example:
BACK UP DATABASE
===================BACKUP DATABASE Test To DISK='D:\SQLDB_BACKUP\Test.bak'
CHECK INTEGRITY
=================USE [TEST]
GO
DBCC CHECKDB WITH NO_INFOMSGS
GO
INDEX DEFRAGEMENT
=====================DBCC INDEXDEFRAG Test
GO
INDEX REBUILDING
======================DBCC DBREINDEX 'Test.dbo.tblTest'
GO
Hope this helps. If you have any other questions or concerns, please feel
free to let me know.
Best regards,
Charles Wang
Microsoft Online Community Support
=====================================================Get notification to my posts through email? Please refer to:
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications
If you are using Outlook Express, please make sure you clear the check box
"Tools/Options/Read: Get 300 headers at a time" to see your reply promptly.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
======================================================When responding to posts, please "Reply to Group" via
your newsreader so that others may learn and benefit
from this issue.
======================================================This posting is provided "AS IS" with no warranties, and confers no rights.
======================================================|||Thanks, this perfectly answer my question.
Very good support as usual.
--
Francois PIETTE
http://www.overbyte.be
"Charles Wang[MSFT]" <changliw@.online.microsoft.com> a écrit dans le message
de news:x9I%234XGbHHA.928@.TK2MSFTNGHUB02.phx.gbl...
> Hi,
> For your three questions, please see the following answers:
> >a) If I change the compatibility level to 80 or 90, what kind of problem
> > could I have ? I have to say that I have no control over the application
> and
> > will not be able to fix any request or stored procedure.
> If there are some features or functionalities that SQL Server 2005 does
not
> support but still exist in your application, it may not work.
> Please refer to:
> SQL Server 2005 Database Engine Backward Compatibility
> http://msdn2.microsoft.com/en-us/library/ms143532.aspx
> Since it is critical to your application, I do not recommend that you
> change the compatibility level. You may consider to write T-SQL script and
> execute it in SQL jobs. Anyway this depends on your requirements. Could
you
> please let us know what your requirements are?
> > b) Is changing the compatibility level a revertible process ? If I
change
> > the compatibility level from 70 to 90, then create the maintenance plan,
> can
> > I go back to level 70 and still use the maintenance plan and the DB ?
> Yes, the database can change back to 70 if the SQL Server 2005 new
features
> were not used in your database; For the maintenance plan, I recommend that
> you established a test environment to check if it still work since I have
> not found any document talking about this issue.
> >c) If none of the above strategy work, how am I supposed to automate
> backup,
> >integrity check, reindexation and all similar maintenance tasks wih the
> >"level 70" database ?
> As I replied in your first question, you can write T-SQL statement in one
> or several SQL jobs and schedule them to run. For example:
> BACK UP DATABASE
> ===================> BACKUP DATABASE Test To DISK='D:\SQLDB_BACKUP\Test.bak'
> CHECK INTEGRITY
> =================> USE [TEST]
> GO
> DBCC CHECKDB WITH NO_INFOMSGS
> GO
> INDEX DEFRAGEMENT
> =====================> DBCC INDEXDEFRAG Test
> GO
> INDEX REBUILDING
> ======================> DBCC DBREINDEX 'Test.dbo.tblTest'
> GO
> Hope this helps. If you have any other questions or concerns, please feel
> free to let me know.
> Best regards,
> Charles Wang
> Microsoft Online Community Support
> =====================================================> Get notification to my posts through email? Please refer to:
>
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
> ications
> If you are using Outlook Express, please make sure you clear the check box
> "Tools/Options/Read: Get 300 headers at a time" to see your reply
promptly.
>
> Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
> where an initial response from the community or a Microsoft Support
> Engineer within 1 business day is acceptable. Please note that each follow
> up response may take approximately 2 business days as the support
> professional working with you may need further investigation to reach the
> most efficient resolution. The offering is not appropriate for situations
> that require urgent, real-time or phone-based interactions or complex
> project analysis and dump analysis issues. Issues of this nature are best
> handled working with a dedicated Microsoft Support Engineer by contacting
> Microsoft Customer Support Services (CSS) at
> http://msdn.microsoft.com/subscriptions/support/default.aspx.
> ======================================================> When responding to posts, please "Reply to Group" via
> your newsreader so that others may learn and benefit
> from this issue.
> ======================================================> This posting is provided "AS IS" with no warranties, and confers no
rights.
> ======================================================>
>
>|||Hi,
Appreciate your update and response. I am glad to hear that the suggestions
are helpful. If you have any other questions or concerns, please do not
hesitate to contact us. It is always our pleasure to be of assistance.
Have a nice day!
Best regards,
Charles Wang
Microsoft Online Community Support
=====================================================Get notification to my posts through email? Please refer to:
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications
If you are using Outlook Express, please make sure you clear the check box
"Tools/Options/Read: Get 300 headers at a time" to see your reply promptly.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
======================================================When responding to posts, please "Reply to Group" via
your newsreader so that others may learn and benefit
from this issue.
======================================================This posting is provided "AS IS" with no warranties, and confers no rights.
======================================================

Maintenance Plan Wizard doesn't see my DB

Using SQL2005-Std, the Maintenance Plan Wizard doesn't see my database. My
database is not listed in the dialog box where you select specific databases
to backup. I see AdventureWorks, AdventureWorksSW, master, model and msdb.
Object Explorer doesn't show "msdb". Maybe it is my DB ? Strange because my
DB has another name and is configured as SQL7 compatible.
Francois PIETTE
http://www.overbyte.beMaint plan doesn't support database in 70 or lower compat mode.
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Francois PIETTE" <fpiette@.newsgroups.nospam> wrote in message
news:%23C5Jhp8aHHA.4176@.TK2MSFTNGP02.phx.gbl...
> Using SQL2005-Std, the Maintenance Plan Wizard doesn't see my database. My
> database is not listed in the dialog box where you select specific databas
es
> to backup. I see AdventureWorks, AdventureWorksSW, master, model and msdb.
> Object Explorer doesn't show "msdb". Maybe it is my DB ? Strange because m
y
> DB has another name and is configured as SQL7 compatible.
> --
> Francois PIETTE
> http://www.overbyte.be
>|||Hi, Francois,
I understand that you could not see your database with compatibility level
70 in your Maintenance Plan.
If I have misunderstood, please let me know.
This is a known by design issue. Tibor has explained the reason here.
For now, the workaround is that you change the compatibility level to 80 or
90.
Please feel free to let us know if you have any other questions or concerns.
Have a good day!
Best regards,
Charles Wang
Microsoft Online Community Support
========================================
=============
Get notification to my posts through email? Please refer to:
http://msdn.microsoft.com/subscript...ault.aspx#notif
ications
If you are using Outlook Express, please make sure you clear the check box
"Tools/Options/Read: Get 300 headers at a time" to see your reply promptly.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscript...t/default.aspx.
========================================
==============
When responding to posts, please "Reply to Group" via
your newsreader so that others may learn and benefit
from this issue.
========================================
==============
This posting is provided "AS IS" with no warranties, and confers no rights.
========================================
==============|||> I understand that you could not see your database with
> compatibility level 70 in your Maintenance Plan.
Right.

> This is a known by design issue. Tibor has explained the reason here.
> For now, the workaround is that you change the compatibility
> level to 80 or 90.
> Please feel free to let us know if you have any other questions or
concerns.
I have an existing application running with SQL version 7 that I want to run
on SQL2005. That's why I selected compatibility level 70.
a) If I change the compatibility level to 80 or 90, what kind of problem
could I have ? I have to say that I have no control over the application and
will not be able to fix any request or stored procedure.
b) Is changing the compatibility level a revertible process ? If I change
the compatibility level from 70 to 90, then create the maintenance plan, can
I go back to level 70 and still use the maintenance plan and the DB ?
c) If none of the above strategy work, how am I supposed to automate backup,
integrity check, reindexation and all similar maintenance tasks wih the
"level 70" database ?
Francois PIETTE
http://www.overbyte.be|||Hi,
For your three questions, please see the following answers:
>a) If I change the compatibility level to 80 or 90, what kind of problem
> could I have ? I have to say that I have no control over the application
and
> will not be able to fix any request or stored procedure.
If there are some features or functionalities that SQL Server 2005 does not
support but still exist in your application, it may not work.
Please refer to:
SQL Server 2005 Database Engine Backward Compatibility
http://msdn2.microsoft.com/en-us/library/ms143532.aspx
Since it is critical to your application, I do not recommend that you
change the compatibility level. You may consider to write T-SQL script and
execute it in SQL jobs. Anyway this depends on your requirements. Could you
please let us know what your requirements are?

> b) Is changing the compatibility level a revertible process ? If I change
> the compatibility level from 70 to 90, then create the maintenance plan,
can
> I go back to level 70 and still use the maintenance plan and the DB ?
Yes, the database can change back to 70 if the SQL Server 2005 new features
were not used in your database; For the maintenance plan, I recommend that
you established a test environment to check if it still work since I have
not found any document talking about this issue.

>c) If none of the above strategy work, how am I supposed to automate
backup,
>integrity check, reindexation and all similar maintenance tasks wih the
>"level 70" database ?
As I replied in your first question, you can write T-SQL statement in one
or several SQL jobs and schedule them to run. For example:
BACK UP DATABASE
===================
BACKUP DATABASE Test To DISK='D:\SQLDB_BACKUP\Test.bak'
CHECK INTEGRITY
=================
USE [TEST]
GO
DBCC CHECKDB WITH NO_INFOMSGS
GO
INDEX DEFRAGEMENT
=====================
DBCC INDEXDEFRAG Test
GO
INDEX REBUILDING
======================
DBCC DBREINDEX 'Test.dbo.tblTest'
GO
Hope this helps. If you have any other questions or concerns, please feel
free to let me know.
Best regards,
Charles Wang
Microsoft Online Community Support
========================================
=============
Get notification to my posts through email? Please refer to:
http://msdn.microsoft.com/subscript...ault.aspx#notif
ications
If you are using Outlook Express, please make sure you clear the check box
"Tools/Options/Read: Get 300 headers at a time" to see your reply promptly.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscript...t/default.aspx.
========================================
==============
When responding to posts, please "Reply to Group" via
your newsreader so that others may learn and benefit
from this issue.
========================================
==============
This posting is provided "AS IS" with no warranties, and confers no rights.
========================================
==============|||Thanks, this perfectly answer my question.
Very good support as usual.
Francois PIETTE
http://www.overbyte.be
"Charles Wang[MSFT]" <changliw@.online.microsoft.com> a crit dans le mes
sage
de news:x9I%234XGbHHA.928@.TK2MSFTNGHUB02.phx.gbl...
> Hi,
> For your three questions, please see the following answers:
> and
> If there are some features or functionalities that SQL Server 2005 does
not
> support but still exist in your application, it may not work.
> Please refer to:
> SQL Server 2005 Database Engine Backward Compatibility
> http://msdn2.microsoft.com/en-us/library/ms143532.aspx
> Since it is critical to your application, I do not recommend that you
> change the compatibility level. You may consider to write T-SQL script and
> execute it in SQL jobs. Anyway this depends on your requirements. Could
you
> please let us know what your requirements are?
>
change[vbcol=seagreen]
> can
> Yes, the database can change back to 70 if the SQL Server 2005 new
features
> were not used in your database; For the maintenance plan, I recommend that
> you established a test environment to check if it still work since I have
> not found any document talking about this issue.
>
> backup,
> As I replied in your first question, you can write T-SQL statement in one
> or several SQL jobs and schedule them to run. For example:
> BACK UP DATABASE
> ===================
> BACKUP DATABASE Test To DISK='D:\SQLDB_BACKUP\Test.bak'
> CHECK INTEGRITY
> =================
> USE [TEST]
> GO
> DBCC CHECKDB WITH NO_INFOMSGS
> GO
> INDEX DEFRAGEMENT
> =====================
> DBCC INDEXDEFRAG Test
> GO
> INDEX REBUILDING
> ======================
> DBCC DBREINDEX 'Test.dbo.tblTest'
> GO
> Hope this helps. If you have any other questions or concerns, please feel
> free to let me know.
> Best regards,
> Charles Wang
> Microsoft Online Community Support
> ========================================
=============
> Get notification to my posts through email? Please refer to:
>
http://msdn.microsoft.com/subscript...ault.aspx#notif
> ications
> If you are using Outlook Express, please make sure you clear the check box
> "Tools/Options/Read: Get 300 headers at a time" to see your reply
promptly.
>
> Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
> where an initial response from the community or a Microsoft Support
> Engineer within 1 business day is acceptable. Please note that each follow
> up response may take approximately 2 business days as the support
> professional working with you may need further investigation to reach the
> most efficient resolution. The offering is not appropriate for situations
> that require urgent, real-time or phone-based interactions or complex
> project analysis and dump analysis issues. Issues of this nature are best
> handled working with a dedicated Microsoft Support Engineer by contacting
> Microsoft Customer Support Services (CSS) at
> http://msdn.microsoft.com/subscript...t/default.aspx.
> ========================================
==============
> When responding to posts, please "Reply to Group" via
> your newsreader so that others may learn and benefit
> from this issue.
> ========================================
==============
> This posting is provided "AS IS" with no warranties, and confers no
rights.
> ========================================
==============
>
>
>|||Hi,
Appreciate your update and response. I am glad to hear that the suggestions
are helpful. If you have any other questions or concerns, please do not
hesitate to contact us. It is always our pleasure to be of assistance.
Have a nice day!
Best regards,
Charles Wang
Microsoft Online Community Support
========================================
=============
Get notification to my posts through email? Please refer to:
http://msdn.microsoft.com/subscript...ault.aspx#notif
ications
If you are using Outlook Express, please make sure you clear the check box
"Tools/Options/Read: Get 300 headers at a time" to see your reply promptly.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscript...t/default.aspx.
========================================
==============
When responding to posts, please "Reply to Group" via
your newsreader so that others may learn and benefit
from this issue.
========================================
==============
This posting is provided "AS IS" with no warranties, and confers no rights.
========================================
==============