Showing posts with label working. Show all posts
Showing posts with label working. Show all posts

Tuesday, March 27, 2012

Books Online July 2006 issue

The SQL Server Books Online was working installed on my workstation fine until this morning. Now when I open it up it does not show me T-SQL reference with all the commands and functions. Yesterday I was on the MSDN website using the Books Online. Could some pointers in the program been corrupted? I have uninstalled and reinstalled Books Online to no avail.

Please help.

Thanks,

Fred

Hi Fred,

When you open Books Online on your local machine, do you see a Contents tab (typically located on the left-hand side of the page)? If no, click the Contents option on the top tool bar. This should reopen the Contents tab that has been closed or hidden.

2. If that doesn't resolve your problem, can you please provide more information. For example, can you find T-SQL Reference topics by using the Index or Search tabs?

Regards,

Gail

|||

Hi Gail,

Yes, the Contents tab is there. When I expand "SQL Server 2005 Books Online" entry in the Contents tab and then expand "SQL Server Language Reference" it shows only "Transact-SQL Reference". It used to show more. Then when I expand "Transact-SQL Reference" it only shows "System Tables (Transact-SQL)". It used to list all the statements and functions.

Thanks,

Fred

|||

Hi Fred,

Okay, this sounds like maybe a filter was accidently set that is limiting the returned topics. At the top of the Contents tab, there's a "Filtered By" drop down box. Make sure the filter is set to either 'unfiltered' or 'SQL Server 2005', or 'SQL Server Database Engine'.

That should resolve the problem, but if it doesn't let me know.

Gail

|||

Hi Gail,

Thanks, that fixed the problem.

Fred

Sunday, March 25, 2012

Books online

I am constantly working with SQL 2000 at my clients sites because we are
a Microsoft Business Solutions Partner.
Is there any way for me to take Books Online and have it in a single
help file or some system so that I have easy reference to it?
I've tried taking the help files that make up Books Online and putting
them on a CD but I just can't seem to get it to work.
Thanks!Brain,
Why not just install it everywhere. It's not restricted by licensing
and is a free download from MS, that you can copy onto CD and install
from there.
http://www.microsoft.com/sql/techinfo/productdoc/2000/books.asp
No I haven't tried running it from a CD only without installing it, but it wouldn't
be impossible. There are many install managers that will monitor what registry
keys and files a setup routine modifies.
Run one as you install BOL, and you should be able to create your own registry
files for inserting/removing it quickly, and probably changing it's access path to
CD - but why would you want to? Are your customers so uptight that they wont
allow you to install product documentation on their servers?
Regards
AJ
"Brian Rottman" <.@..> wrote in message news:OWALEL$nDHA.392@.TK2MSFTNGP11.phx.gbl...
> I am constantly working with SQL 2000 at my clients sites because we are
> a Microsoft Business Solutions Partner.
> Is there any way for me to take Books Online and have it in a single
> help file or some system so that I have easy reference to it?
> I've tried taking the help files that make up Books Online and putting
> them on a CD but I just can't seem to get it to work.
> Thanks!
>sql

Thursday, March 22, 2012

Bookmark lookup cost factors (SQL Server 7.0)

Good day to you.
I am working with some large databases with several tables hosting
millions or tens of millions of records. The actual data is being
stored on a SAN, while the database host is a 4 CPU SMP machine. In
this case the SAN is often a bottleneck while the CPUs are idled.
A situation that I am consistently observing is extremely poor choices
for the uses of indexes -- or rather the lack of index use. What I am
constantly finding for these large tables is that highly unique
non-clustered indexes are being ignored, and instead a table scan is
being performed. The execution engine is (wrongly) assuming that the
bookmark lookups will be more costly than simply doing a tablescan.
The end result is that many queries run 10s or 100s of times longer
than they should without explicitly adding index hints to force it to
use the index.
In one example a table with 5,000,000 or so records has a
non-clustered index on a field, and the statistics believe that there
are around 141 records that match the requested specific criteria
(there are really less -- as a sidenote can one increase the number of
steps stored by statistics?). Instead of quickly pulling the presumed
141 index matches and then doing the corresponding bookmark lookups,
it's instead table scanning all 5,000,000 records. Indeed if I look at
the estimated execution plans, it's claiming that the forced use of
the non-clutered index, and hence forced bookmark lookups, will yield
5x the subtree cost. The end results tell the real story, though -
with the index hint it completes instantly, while without the hint it
takes hundreds of times longer.
Is there a server or database setting that governs the estimation of
the cost of bookmark lookups? I do not wish to resort to unnecessary
hardcoded index hints when it's such a basically incorrect assumption
by the query engine that affects the entire system wherever large
tables are accessed. As a sidenote I had previously heard the
statistic that a non-clustered index will only be used if the
estimated set yields less than 2% of the total set, due to the cost of
bookmark lookups, but in this case it isn't using it even when the
estimated set is ~ 0.003%... how is it choosing?
Thanks
Dennis ForbesHi Dennis,
I think that 285996 PRB: Cost of Using Non-Clustered Indexes May Be Incorrect if Data (
http://support.microsoft.com/?id=285996) is something that may be applicable
to your scenario. Unfortunately there are no 'knobs' that tune the cost es
timation for any operators inside SQL Server.
Thanks,
--R
"Dennis Forbes" <dennis_forbes@.hotmail.com> wrote in message news:32811a52.0
403190902.35fd2ef5@.posting.google.com...
Good day to you.
I am working with some large databases with several tables hosting
millions or tens of millions of records. The actual data is being
stored on a SAN, while the database host is a 4 CPU SMP machine. In
this case the SAN is often a bottleneck while the CPUs are idled.
A situation that I am consistently observing is extremely poor choices
for the uses of indexes -- or rather the lack of index use. What I am
constantly finding for these large tables is that highly unique
non-clustered indexes are being ignored, and instead a table scan is
being performed. The execution engine is (wrongly) assuming that the
bookmark lookups will be more costly than simply doing a tablescan.
The end result is that many queries run 10s or 100s of times longer
than they should without explicitly adding index hints to force it to
use the index.
In one example a table with 5,000,000 or so records has a
non-clustered index on a field, and the statistics believe that there
are around 141 records that match the requested specific criteria
(there are really less -- as a sidenote can one increase the number of
steps stored by statistics?). Instead of quickly pulling the presumed
141 index matches and then doing the corresponding bookmark lookups,
it's instead table scanning all 5,000,000 records. Indeed if I look at
the estimated execution plans, it's claiming that the forced use of
the non-clutered index, and hence forced bookmark lookups, will yield
5x the subtree cost. The end results tell the real story, though -
with the index hint it completes instantly, while without the hint it
takes hundreds of times longer.
Is there a server or database setting that governs the estimation of
the cost of bookmark lookups? I do not wish to resort to unnecessary
hardcoded index hints when it's such a basically incorrect assumption
by the query engine that affects the entire system wherever large
tables are accessed. As a sidenote I had previously heard the
statistic that a non-clustered index will only be used if the
estimated set yields less than 2% of the total set, due to the cost of
bookmark lookups, but in this case it isn't using it even when the
estimated set is ~ 0.003%... how is it choosing?
Thanks
Dennis Forbessql

Bookmark in Code not working.


I have a report in reporting services that has a bookmark value asigned to each row. In the following Page_Load event for the page, I'm getting the following error on the ReportViewer1.JumpToBookmark("6") statement:

"An exception of type 'System.InvalidOperationException' occurred in Microsoft.ReportViewer.WebForms.dll but was not handled in user code

Additional information: Some parameters or credentials have not been specified"

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

If Not IsPostBack Then

Dim strReport1 As String = "/ReportDirectory/CurrentWeekSales"

ReportViewer1.ServerReport.ReportServerUrl = New System.Uri(CStr(Session.Item("ReportServer")))
ReportViewer1.ServerReport.ReportPath = strReport1
ReportViewer1.ServerReport.Timeout = 500000

Do While ReportViewer1.ServerReport.IsDrillthroughReport
ReportViewer1.PerformBack()
Loop

Dim RptParameters1 As ReportParameter() = New ReportParameter(0) {}
RptParameters1(0) = New ReportParameter("EBO_EmpKey", CStr(Session.Item("UserKey")))
ReportViewer1.ServerReport.SetParameters(RptParameters1)

ReportViewer1.ServerReport.Refresh()

ReportViewer1.JumpToBookmark("6")

End If
End Sub

What am I missing?

ThanksI too am having a similar problem. I find that JumpToBookmark() simply does not work no matter what I try. Interestingly, setting the 'action' property of a TextBox within the report to jump to the target bookmark seems to work. Unfortunately, I need to be able to do this in code without having to force the user to click on the report.

Is this a known problem, or is there something else on the viewer and/or report that needs to be set?

Thanks,

Ian.

Book question: Professional SQL Server Reporting Services

I am fairly new to SQL Server and very new to Reporting Services. I am
working my way through the WROX book: Professional SQL Server Reporting
Services by Turley et. al. Is this the best forum to ask questions about the
book in general and issues with walk-through examples? If it is, I am having
problems with the example that concludes on page 112. This involves
cascading parameters.
Everything works on the dataset definitions. If I run the Stores_BY_City
dataset and select AZ/Phoenix I do indeed see the 3 stores in Phoenix (437,
473, and 475). When I preview the report the parameter drop down lists work
as expected. However, the reporting fields in the preview are blank. The
labels show fine. Any suggestion on how to debug? Thank you, BobBob
Please send me you RDL file so I can see what's going on.
(nospam@.scout-master..com (fix the addess))
Paul Turley
"Robert Schuldenfrei" <RobertSchuldenfrei@.discussions.microsoft.com> wrote in message news:<1D76AEFA-7FA7-431B-9433-8D334D438FB8@.microsoft.com>...
> I am fairly new to SQL Server and very new to Reporting Services. I am
> working my way through the WROX book: Professional SQL Server Reporting
> Services by Turley et. al. Is this the best forum to ask questions about the
> book in general and issues with walk-through examples? If it is, I am having
> problems with the example that concludes on page 112. This involves
> cascading parameters.
> Everything works on the dataset definitions. If I run the Stores_BY_City
> dataset and select AZ/Phoenix I do indeed see the 3 stores in Phoenix (437,
> 473, and 475). When I preview the report the parameter drop down lists work
> as expected. However, the reporting fields in the preview are blank. The
> labels show fine. Any suggestion on how to debug? Thank you, Bob

Tuesday, March 20, 2012

BOOK FOR SALE: SQL Server 2005 Reporting Services for Dummies

Bought the book brand new and found out the company I started working for
already had it. It is 99.9999% mint. The only glitch is 1 or 2 folded
corners on a page...very good condition.
Paid $24.95 US for it and will take $10.00 for it. Plus shipping (media
mail).
Plus, I will give you 5 days to see if you like it! If not, I will give a
full refund if you send the book back in same condition.
USA only please.
If this is the wrong place to post this then I apologize.
Contact me at: cbmeeks@.gmail.com
PAYPAL only."cbmeeks" wrote:
> Bought the book brand new and found out the company I started working for
> already had it. It is 99.9999% mint. The only glitch is 1 or 2 folded
> corners on a page...very good condition.
> Paid $24.95 US for it and will take $10.00 for it. Plus shipping (media
> mail).
> Plus, I will give you 5 days to see if you like it! If not, I will give a
> full refund if you send the book back in same condition.
> USA only please.
> If this is the wrong place to post this then I apologize.
> Contact me at: cbmeeks@.gmail.com
> PAYPAL only.
>
Forgot to mention the ISBN: 0-7645-8913-X

Book about Data Mining in Insurance Industry

Hi, all experts here,

Thank you very much for your kind attention.

I am currently working on my data mining project with the data from insurance industry. I am looking for more in-depth book or resource about the data mining application in insurance industry.

Have any experts here ever found any great resouce about that? Please shed any light on that. It is much more appreciated.

Thank you very much in advance for your help and I am looking forward to hearing from you.

With best regards,

Yours sincerely,

The best reference is probably this: Intelligent and Other Computational Techniques in Insurance (Shapiro)

There is also a very readable general intro to IT in insurance which has a chapter on BI and covers data mining to an extent: Insurance Technology Handbook: The New Partnership (Keyes)

hth

|||

Hi, Donald,

Thanks a lot for your very helpful advices.

With best regards,

Yours sincerely,

bol tutorial help: browse cube hangs every time


Hey I'm working my way through the tutorials... and every time I get to the point where I get to "browse the deployed cube" in lesson 2 -- Biz Intelligence Studio hangs. The browser tab is selected, it says "Loading...", and I have an hour glass. Management Studio shows that the cube was deployed. I've tried with two different servers... I'm admin on both. Almost no CPU util on client and server. I've let it run for days with no result.

Any ideas on what's wrong or how to diagnose this?

Thanks,
Fred

Try reinstalling Office Web Components(OWC).

sql

Monday, March 19, 2012

Blocking with RECEIVE and SqlDataReader for real-time updates

I have this scenario which is working fine, but would like to know if others have tried it or can recommend a better approach. Below is a brief description, but code should fully explain:

A process updates a SQL Server table via a stored proc, which in turn writes information to a service broker target queue. In my client/server architecture, I would like clients to see this new information as soon as it gets written to the target queue. To do this, I have a WCF service that calls a stored procedure; the stored proc contains an infinite loop which has a RECEIVE statement with an infinite timeout. Once RECEIVE reads data from the SB queue, data is retrieved via a SqlDataReader and results are sent to clients via a pub/sub. I then wait for more rows until RECEIVE unblocks and so on.

Stroed Proc

Code Snippet

-- ...
WHILE 1 = 1
BEGIN
-- Param declarations

...

BEGIN TRANSACTION;
WAITFOR
(
-- Blocks while TargetQueue is empty
RECEIVE
TOP(1)
@.conversation_handle = conversation_handle,
@.message_type_name = message_type_name,
@.conversation_group_id = conversation_group_id,
@.message_body =
CASE
WHEN validation = 'X' THEN CAST(message_body AS XML)
ELSE CAST(N'' AS XML)
END
FROM [dbo].[TargetQueue] -- No time out!
)

-- Handle errors
...

-- Return received information. After this statement is executed,
-- reader.NextResult unblocks and reader.Read() can read these
-- new values
SELECT 'Conversation Group Id' = @.conversation_group_id,
'Conversation Handle' = @.conversation_handle,
'Message Type Name' = @.message_type_name,
'Message Body' = @.message_body ;

COMMIT TRANSACTION


END -- WHILE

C# Code

Code Snippet

// Create a SqlCommand, and initialize to execute above stored proc
// (set command time to zero!)
...

// ExecuteReader blocks until RECEIVE reads data from the target queue
using (SqlDataReader reader = cmd.ExecuteReader())
{
// Begin an infinite loop
while (true)
{
// Process data retrieved by RECEIVE
while (reader.Read())
{
Trace.WriteLine("Conversation Group Id :" + reader.GetGuid(0) +
"Conversation Handle: " + reader.GetGuid(1) +
"Message Type Name : " + reader.GetString(2) +
"Message Body : " + reader.GetString(3));
// Send data via pub/sub
...
}

// Blocks until stored procedure returns another select statement
// i.e., blobks until RECEIVE unblocks and retrieves more data from queue
reader.NextResult();
} // while
}

There isn't anything wrong with your approach from what you show, but I do have a few questions:

Who ends the dialogs and how? The RECEIVE loop has to be prepared to process the with EndDialog and Error messages, otherwise you will leak conversations and your database will grow indefinetly. Also the stored procedure you mention, how does it find the dialog to send on and how does it end it?

Are the notifications important? Can you afford to loose one? You will lose notifications because WCF is cannot guarantee reliable delivery.

What scale are you talking about? One single RECEIVE loop with TOP(1) will have problems if you expect thousands of notifications per second.

|||

Remus,

Thanks for your thoughtful questions. My comments are below:

>What scale are you talking about? One single RECEIVE loop with TOP(1) will have problems if you expect thousands of notifications per second

Currently there will be less than 100 (One hundred) notifications per day. It is likely however, that these notifications will come in bursts as the process that ultimately populates the target queue (via uspSendMessage below) kicks in multiple times during the day. I can remove TOP(1) if necessary.

>Are the notifications important? Can you afford to loose one? You will lose notifications because WCF is cannot guarantee reliable delivery

Yes notifications to clients are very important as they will be used for trade position management. With WCF I am planning on using MSMQ to gurarantee delivery to clients. Is this what you meant?

> Who ends the dialogs and how? how does the stored proc find the dialog to send on and how does it end it?

I have two stored proc. uspSendMessage which updates a database table with new information, also does BEGIN DIALOG, then SEND ON CONVERSATION, then END CONVERSATION and COMMIT TRAN. uspReceiveMessage on the other hand does a RECEIVE (does not specify a conversion group id order to retreive all data), SELECT to select and send data to the SqlDataReader, END CONVERSATION, and then COMMIT TRAN.

Both stored proc from my test harness are shown below:

Code Snippet

CREATE PROCEDURE uspSendMessage

-- Add the parameters for the stored procedure here

@.CompanyName nvarchar(40),

@.PhoneName nvarchar(24)

AS

BEGIN

-- SET NOCOUNT ON added to prevent extra result sets from

-- interfering with SELECT statements.

SET NOCOUNT ON

begin try

-- Begin a transaction.

BEGIN TRANSACTION;

-- Insert data

insert into Shippers (CompanyName, Phone) values(@.CompanyName, @.PhoneName)

-- Create the message.

DECLARE @.message XML

SET @.message = N'<Shipper><CompanyName>' + @.CompanyName + '</CompanyName><Phone>' + @.PhoneName + '</Phone></Shipper>'

-- Declare a variable to hold the conversation handle, and then start the conversation

DECLARE @.conversationHandle UNIQUEIDENTIFIER

BEGIN DIALOG CONVERSATION @.conversationHandle

FROM SERVICE InitiatorService

TO SERVICE 'TargetService'

ON CONTRACT NewShipperContract

WITH ENCRYPTION = OFF;

-- Send the message on the dialog.

SEND ON CONVERSATION @.conversationHandle MESSAGE TYPE NewShipperMessage (@.message);

-- End the conversation.

END CONVERSATION @.conversationHandle

COMMIT TRANSACTION

end try

begin catch

select error_number() as ErrorNum, error_message() as ErrorMSg

-- Test XACT_STATE

IF (XACT_STATE()) = -1 -- Uncmmitable transaction state

BEGIN

ROLLBACK TRANSACTION;

END;

IF (XACT_STATE()) = 1 -- Tranaction active

BEGIN

COMMIT TRANSACTION;

END;

end catch

END

Code Snippet

CREATE PROCEDURE uspReceiveMessage

AS

BEGIN

-- SET NOCOUNT ON added to prevent extra result sets from

-- interfering with SELECT statements.

SET NOCOUNT ON;

WHILE 1 = 1

BEGIN

DECLARE @.conversation_handle UNIQUEIDENTIFIER,

@.conversation_group_id UNIQUEIDENTIFIER,

@.message_body XML,

@.message_type_name NVARCHAR(128);

BEGIN TRANSACTION;

WAITFOR

(

RECEIVE TOP(1)

@.conversation_handle = conversation_handle,

@.message_type_name = message_type_name,

@.conversation_group_id = conversation_group_id,

@.message_body =

CASE

WHEN validation = 'X' THEN CAST(message_body AS XML)

ELSE CAST(N'<none/>' AS XML)

END

FROM [dbo].[TargetQueue]

)

-- Handle error

IF @.@.ERROR <> 0

BEGIN

COMMIT TRANSACTION

BREAK

END

-- Show received information

SELECT 'Conversation Group Id' = @.conversation_group_id,

'Conversation Handle' = @.conversation_handle,

'Message Type Name' = @.message_type_name,

'Message Body' = @.message_body ;

-- If the message_type_name indicates that the message is an error

-- or an end dialog message, end the conversation.

IF @.message_type_name = 'http://schemas.microsoft.com/SQL/ServiceBroker/EndDialog'

OR @.message_type_name = 'http://schemas.microsoft.com/SQL/ServiceBroker/Error'

BEGIN

END CONVERSATION @.conversation_handle ;

END ;

COMMIT TRANSACTION

END -- WHILE

END

|||

Yazan Diranieh wrote:

>What scale are you talking about? One single RECEIVE loop with TOP(1) will have problems if you expect thousands of notifications per second

Currently there will be less than 100 (One hundred) notifications per day. It is likely however, that these notifications will come in bursts as the process that ultimately populates the target queue (via uspSendMessage below) kicks in multiple times during the day. I can remove TOP(1) if necessary.

If you will hit scalabilty problems removing TOP(1) will not help, as you are sending only one message per dialog anyway, so RECEIVE can only return one message at a time. See http://blogs.msdn.com/remusrusanu/archive/2007/04/24/reusing-conversations.aspx and http://blogs.msdn.com/remusrusanu/archive/2007/05/02/recycling-conversations.aspx on how to send more than one message per dialog. I wouldn't focus on this at the moment though.

Yazan Diranieh wrote:

>Are the notifications important? Can you afford to loose one? You will lose notifications because WCF is cannot guarantee reliable delivery

Yes notifications to clients are very important as they will be used for trade position management. With WCF I am planning on using MSMQ to gurarantee delivery to clients. Is this what you meant?

As it is now, if the process crashes after the RECEIVE was commited but before the WCF send occured (or reached the outgoing MSMQ queue), your notification is lost. You must use a distributed transaction and enroll both the SqlCommand.ExecuteReader and the WCF send in the same transaction context. This also means you cannot use one infintely executing batch, but instead loop in CLR code and call one RECEIVE at a time.

Yazan Diranieh wrote:

> Who ends the dialogs and how? how does the stored proc find the dialog to send on and how does it end it?

I have two stored proc. uspSendMessage which updates a database table with new information, also does BEGIN DIALOG, then SEND ON CONVERSATION, then END CONVERSATION and COMMIT TRAN. uspReceiveMessage on the other hand does a RECEIVE (does not specify a conversion group id order to retreive all data), SELECT to select and send data to the SqlDataReader, END CONVERSATION, and then COMMIT TRAN.

You are doing Fire-and-Forget, this will get you into trouble, see http://blogs.msdn.com/remusrusanu/archive/2006/04/06/570578.aspx. Try to end the conversation from the target side first and have the sender end its side as a response to the target's EndDialog message.

|||Very informative. Thanks very much.

Sunday, March 11, 2012

Blocking ms-access

Hi,
There is a way to block all request that come from a ms-
access ?
I am working for a company where users always connects to a SQL database to get information they need (because applications don't provide them).
The problem is when the users run queries, they lock almost all database preventing others users to work.
I can't remove SQL permissions because the application depends on it to run and i can't uninstall ms-access from the users because they need the information to do their job.
I am configuring a log shipping environment with "read-
only" permission and trying to identify users running ms-
access querying sysprocesses (to change the odbc to another server) but not everyone that uses ms-access are logged in sysprocesses as "Microsoft=AE Access", sometimes the application in sysprocesses is empty and i can't identify what user is running.
Any suggetion ?
Thanks,
Julio CarvalhoYours is probably the best solution. If another SQL Server isn't an
option due to cost or whatever, the data could always be pushed out to
an Access mdb and users could run reports by linking to it instead of
the server.
-- Mary
Microsoft Access Developer's Guide to SQL Server
http://www.amazon.com/exec/obidos/ASIN/0672319446
On Tue, 22 Jul 2003 15:26:18 -0400, "Stefan" <st@.email.net> wrote:
>Julio,
>I have exactly the same environment here. We had to set up another server
>and use transactional replication to push data. Then all Access clients were
>pointed to this new box where they could run their reports without
>disturbing any other production application.
>"Julio Carvalho" <jc.carvalho@.terra.com.br> wrote in message
>news:01ec01c3507c$b7fbb8c0$a401280a@.phx.gbl...
>Hi,
>There is a way to block all request that come from a ms-
>access ?
>I am working for a company where users always connects to
>a SQL database to get information they need (because
>applications don't provide them).
>The problem is when the users run queries, they lock
>almost all database preventing others users to work.
>I can't remove SQL permissions because the application
>depends on it to run and i can't uninstall ms-access from
>the users because they need the information to do their
>job.
>I am configuring a log shipping environment with "read-
>only" permission and trying to identify users running ms-
>access querying sysprocesses (to change the odbc to
>another server) but not everyone that uses ms-access are
>logged in sysprocesses as "Microsoft® Access", sometimes
>the application in sysprocesses is empty and i can't
>identify what user is running.
>Any suggetion ?
>Thanks,
>Julio Carvalho
>

Wednesday, March 7, 2012

Blocked table

I have a merge sinchronization working just fine. And I have a table
sinchronizing a long time ago without data because i was not using it yet.
No that I have decided to use it, it always said that I can't insert Null in
the rouguid column.
How can I fix it?
Thanks a lot!
EXEC sp_configure 'allow',1
go
reconfigure with override
go
use DataBaseName
go
update sysobjects set replinfo = 0 where name = 'TableName'
go
EXEC sp_configure 'allow',0
go
reconfigure with override
go
sp_MSunmarkreplinfo 'TableName'
go
Then issue the following
alter tablename
drop column rowguid
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
"Lina Manjarres" <LinaManjarres@.discussions.microsoft.com> wrote in message
news:6D8D5772-3C47-485B-A96B-997BA437C2D2@.microsoft.com...
> I have a merge sinchronization working just fine. And I have a table
> sinchronizing a long time ago without data because i was not using it yet.
> No that I have decided to use it, it always said that I can't insert Null
in
> the rouguid column.
> How can I fix it?
> Thanks a lot!

Saturday, February 25, 2012

BLOB Removal

I am working on a DOD contract and would like to find out
if there is any software out there that would allow
deletion of a sql blob, like a word document, and then
scrubbing of the disk where the blob had resided.
Currently we are forced to delete the doc, backup the
database, scrub the disk and over write with hex mutliple
times and then restore the database.
Please let me know if there is software available for
this.
Thankyou
I'm not aware of any tools that would alllow you to scrub the disk with the
DB files in place.
There are a few tools that allow you to encrypt data in SQL Server. But I'm
not aware of anything that would scrube the disks.
Brian
"Thom" <anonymous@.discussions.microsoft.com> wrote in message
news:822f01c48530$f253d040$a501280a@.phx.gbl...
> I am working on a DOD contract and would like to find out
> if there is any software out there that would allow
> deletion of a sql blob, like a word document, and then
> scrubbing of the disk where the blob had resided.
> Currently we are forced to delete the doc, backup the
> database, scrub the disk and over write with hex mutliple
> times and then restore the database.
> Please let me know if there is software available for
> this.
> Thankyou

BLOB data

I am working on integrating Novell's IDM JDBC driver with a SQL 2005
database to retrieve user photos. The photos are in BLOB format, however
they are too large for eDirectory to handle. Is there a way to resize data
that is already stored in a BLOB field? If not, what's the easiest (and can
be automated easiest) way to export and resize these files? Thanks in
advance!!
Joey
Write a C# app to do it (there are all kinds of image libraries available
out there). SQL Server just sees a big string, basically, that represents
the graphic. There is no way for SQL Server to resize or resample graphics
you store, just like your fridge can't change a 2 L bottle of milk into a
500 mL bottle. :-)
"Joey Kinney" <joey.kinney@.rackspace.com> wrote in message
news:uQM%23dnFlIHA.5160@.TK2MSFTNGP05.phx.gbl...
>I am working on integrating Novell's IDM JDBC driver with a SQL 2005
>database to retrieve user photos. The photos are in BLOB format, however
>they are too large for eDirectory to handle. Is there a way to resize data
>that is already stored in a BLOB field? If not, what's the easiest (and
>can be automated easiest) way to export and resize these files? Thanks in
>advance!!
> Joey

BLOB data

I am working on integrating Novell's IDM JDBC driver with a SQL 2005
database to retrieve user photos. The photos are in BLOB format, however
they are too large for eDirectory to handle. Is there a way to resize data
that is already stored in a BLOB field' If not, what's the easiest (and can
be automated easiest) way to export and resize these files' Thanks in
advance!!
JoeyWrite a C# app to do it (there are all kinds of image libraries available
out there). SQL Server just sees a big string, basically, that represents
the graphic. There is no way for SQL Server to resize or resample graphics
you store, just like your fridge can't change a 2 L bottle of milk into a
500 mL bottle. :-)
"Joey Kinney" <joey.kinney@.rackspace.com> wrote in message
news:uQM%23dnFlIHA.5160@.TK2MSFTNGP05.phx.gbl...
>I am working on integrating Novell's IDM JDBC driver with a SQL 2005
>database to retrieve user photos. The photos are in BLOB format, however
>they are too large for eDirectory to handle. Is there a way to resize data
>that is already stored in a BLOB field' If not, what's the easiest (and
>can be automated easiest) way to export and resize these files' Thanks in
>advance!!
> Joey

Thursday, February 16, 2012

Blank Ones..

Hi !

I have a full text catalog for a table under a database. all was working, until 2-3 days back,which we created 4 months back.
Now my search in my website , doesnt retrieve any records .

when i checked job History for this Full text catalog, its showin this error:-
Full-Text Search is not enabled for the current database.
Use sp_fulltext_database to enable Full-Text Search. [SQLSTATE 42000] (Error 15601). The step failed.

what should i do to make everything ok..?

Please advice me...!

Thanks !i forgot to add...

I am using SQL 2000 with W2K.

Can i do INCREMENTAL POPULATION ..?

Please help me...!!!

blank lines

This may be an incredibly easy fix, but I can't figure it out!

I'm working with xp_sendmail, and I'm trying to get it send out 2 separate queries.

The problem is that in the body of the e-mail, it puts the right after each other, so it's kind of bad to look at.

Is there any way I can insert a few blanks lines in between these 2 queries ? I tried a simple "print ' ' ", but I get access violation errors.

Suggestions?Well, this may not be an elegant solution, but you can always place a few statements like:

select ''

between your queries to add some blank space. Actually, this may print line separators defpending on your connection configuration, but you can also try something like this:

select char(13) + char(13) + char(13) + char(13) + char(13)

...which will pad your output with five carriage returns.

blindman|||Well that works, but as you said, the line separator shows up, which is kind of an eyesore. Do you or anyone else know any workarounds to this?|||Use the Char(13) method and you can include as many line-feeds as you want and you should only get one separator for the statement.

blindman

Tuesday, February 14, 2012

Blank Error Messagebox Displayed at startup

When I start SQL Server Management Studio an error message box with no text is displayed with the Exclamation ICON. Everything seems to be working after clicking OK though. Anyone else experienced this. Also... Why is it that I can't repair the installation from Add and Uninstall? Do I have to uninstall it to repair it?

The SQL 2005 is the Developer Addition with a new install...I haven't seen the empty error message box problem. Does it still do that when you start Management Studio, or was it a one-time thing?

You should be able to repair your installation by clicking on the "Change" button rather than "Uninstall" and then walking through the setup wizard.|||Steven,

Actually when I select change from the Add/Remove menu the install starts, but after it checks prerequisets it tells me it's already installed and then tells me there is no maintenance mode and suggests that I do it from Add/Remove Programs ;o).

I don't know why, but beginning Friday the dialog box is gone (go figure). I think the system must be saying, "Wait until Otis logs on and if it's the third Thursday of the month and the moon is not full, throw up that blank message box before you open the Management Studio." Big Smile|||

You are going to Add/Remove Programs and clicking the Change button there, right? That should get you into maintenance mode for SQL Setup.

|||Yes, that's where I'm going and it does say that it's going into maintenance mode, but after checking the previous install it says there is no maintenance mode for the product.

I'll check it again tomorrow and let you know exactly what I see, rather than what I recall ;-) It's late here in Tejas.|||I've just started receiving the same blank error message. The only thing I recall doing since it ran without the error message is running windows updates with the 2 most recent suggested updates for XP + the 1.1 .NET framework. I also installed an application which uses the 1.1 framework. I had all of the same components (minus the two most recent suggested updates) running on the same machine while SQL 2005 was still in beta and never ran into this problem.<br><br>
I'm working on the machine from remote right now so I am not going to bother messing with it while it appears to still be working.|||

dubstar wrote:

I've just started receiving the same blank error message. The only thing I recall doing since it ran without the error message is running windows updates with the 2 most recent suggested updates for XP + the 1.1 .NET framework. I also installed an application which uses the 1.1 framework. I had all of the same components (minus the two most recent suggested updates) running on the same machine while SQL 2005 was still in beta and never ran into this problem.<br><br>

I'm working on the machine from remote right now so I am not going to bother messing with it while it appears to still be working.

I don't know why, but my installation just stopped didplaying the blank messagebox a couple of days after the anomally presented itself (see my post above).

I would be interested in knowing if yours goes away too.|||Oddly enough, it has!
I did what work I had to do and when I was finished I was going to try the suggested maintenance from Add/Remove Programs, but it no longer shows up. I did get a screenshot for a friend's 'collection' though.. so it wasn't a total loss. ;)|||

dubstar wrote:

Oddly enough, it has!

I did what work I had to do and when I was finished I was going to try the suggested maintenance from Add/Remove Programs, but it no longer shows up. I did get a screenshot for a friend's 'collection' though.. so it wasn't a total loss. ;)

Ha, ha...

The Phantom strikes again Smile|||I have since run into this problem again. It seems to be related to Crystal Reports. I run an application that appears to use an older version of some Crystal Reports dll than VS 2005 provides. It's a bit of an ongoing saga in that I repair VS 2005, it breaks the other app - I run the other app, it breaks VS 2005. It also appears to have an effect on the documentation browser - when it's VS 2005's turn to be broken many of the tables in the help render text improperly - it will show up half outside of the cells in any table and is mostly unreadable.

The other app is a CRM tool that I am not awfully fond of though. In all honesty, I'm kind of glad to have a reason to uninstall it. :)

...Kevin|||I'm getting the same blank error message box after installing the 1.1 .net framework.|||well my error box just turned from a yeild sign !, to a Stop sign X, now for the problem. if i press either yes or no it reboots to the login page|||I am also getting this problem. I'm not sure but it may have started after installing the .NET Framework 1.1. I don't do anything with Crystal Reports.|||I too am getting the blank dialog, with an exclamation, although it seems to be benign and everything else is working fine. No Crystal Reports here...|||

Does repairing .NET Framework 2.0 fix this problem?

You can do that by going to Control Panel > Add or Remove Programs and clicking on the Change/Remove button for Microsoft .NET Framework 2.0. When the setup dialog appears, select Repair and click Next.

Thanks,
Steve

Blank Error Messagebox Displayed at startup

When I start SQL Server Management Studio an error message box with no text is displayed with the Exclamation ICON. Everything seems to be working after clicking OK though. Anyone else experienced this. Also... Why is it that I can't repair the installation from Add and Uninstall? Do I have to uninstall it to repair it?

The SQL 2005 is the Developer Addition with a new install...I haven't seen the empty error message box problem. Does it still do that when you start Management Studio, or was it a one-time thing?

You should be able to repair your installation by clicking on the "Change" button rather than "Uninstall" and then walking through the setup wizard.|||Steven,

Actually when I select change from the Add/Remove menu the install starts, but after it checks prerequisets it tells me it's already installed and then tells me there is no maintenance mode and suggests that I do it from Add/Remove Programs ;o).

I don't know why, but beginning Friday the dialog box is gone (go figure). I think the system must be saying, "Wait until Otis logs on and if it's the third Thursday of the month and the moon is not full, throw up that blank message box before you open the Management Studio." Big Smile|||

You are going to Add/Remove Programs and clicking the Change button there, right? That should get you into maintenance mode for SQL Setup.

|||Yes, that's where I'm going and it does say that it's going into maintenance mode, but after checking the previous install it says there is no maintenance mode for the product.

I'll check it again tomorrow and let you know exactly what I see, rather than what I recall ;-) It's late here in Tejas.|||I've just started receiving the same blank error message. The only thing I recall doing since it ran without the error message is running windows updates with the 2 most recent suggested updates for XP + the 1.1 .NET framework. I also installed an application which uses the 1.1 framework. I had all of the same components (minus the two most recent suggested updates) running on the same machine while SQL 2005 was still in beta and never ran into this problem.<br><br>
I'm working on the machine from remote right now so I am not going to bother messing with it while it appears to still be working.|||

dubstar wrote:

I've just started receiving the same blank error message. The only thing I recall doing since it ran without the error message is running windows updates with the 2 most recent suggested updates for XP + the 1.1 .NET framework. I also installed an application which uses the 1.1 framework. I had all of the same components (minus the two most recent suggested updates) running on the same machine while SQL 2005 was still in beta and never ran into this problem.<br><br>

I'm working on the machine from remote right now so I am not going to bother messing with it while it appears to still be working.

I don't know why, but my installation just stopped didplaying the blank messagebox a couple of days after the anomally presented itself (see my post above).

I would be interested in knowing if yours goes away too.|||Oddly enough, it has!
I did what work I had to do and when I was finished I was going to try the suggested maintenance from Add/Remove Programs, but it no longer shows up. I did get a screenshot for a friend's 'collection' though.. so it wasn't a total loss. ;)|||

dubstar wrote:

Oddly enough, it has!

I did what work I had to do and when I was finished I was going to try the suggested maintenance from Add/Remove Programs, but it no longer shows up. I did get a screenshot for a friend's 'collection' though.. so it wasn't a total loss. ;)

Ha, ha...

The Phantom strikes again Smile|||I have since run into this problem again. It seems to be related to Crystal Reports. I run an application that appears to use an older version of some Crystal Reports dll than VS 2005 provides. It's a bit of an ongoing saga in that I repair VS 2005, it breaks the other app - I run the other app, it breaks VS 2005. It also appears to have an effect on the documentation browser - when it's VS 2005's turn to be broken many of the tables in the help render text improperly - it will show up half outside of the cells in any table and is mostly unreadable.

The other app is a CRM tool that I am not awfully fond of though. In all honesty, I'm kind of glad to have a reason to uninstall it. :)

...Kevin|||I'm getting the same blank error message box after installing the 1.1 .net framework.|||well my error box just turned from a yeild sign !, to a Stop sign X, now for the problem. if i press either yes or no it reboots to the login page|||I am also getting this problem. I'm not sure but it may have started after installing the .NET Framework 1.1. I don't do anything with Crystal Reports.|||I too am getting the blank dialog, with an exclamation, although it seems to be benign and everything else is working fine. No Crystal Reports here...|||

Does repairing .NET Framework 2.0 fix this problem?

You can do that by going to Control Panel > Add or Remove Programs and clicking on the Change/Remove button for Microsoft .NET Framework 2.0. When the setup dialog appears, select Repair and click Next.

Thanks,
Steve

Blank Error Messagebox Displayed at startup

When I start SQL Server Management Studio an error message box with no text is displayed with the Exclamation ICON. Everything seems to be working after clicking OK though. Anyone else experienced this. Also... Why is it that I can't repair the installation from Add and Uninstall? Do I have to uninstall it to repair it?

The SQL 2005 is the Developer Addition with a new install...I haven't seen the empty error message box problem. Does it still do that when you start Management Studio, or was it a one-time thing?

You should be able to repair your installation by clicking on the "Change" button rather than "Uninstall" and then walking through the setup wizard.|||Steven,

Actually when I select change from the Add/Remove menu the install starts, but after it checks prerequisets it tells me it's already installed and then tells me there is no maintenance mode and suggests that I do it from Add/Remove Programs ;o).

I don't know why, but beginning Friday the dialog box is gone (go figure). I think the system must be saying, "Wait until Otis logs on and if it's the third Thursday of the month and the moon is not full, throw up that blank message box before you open the Management Studio." Big Smile|||

You are going to Add/Remove Programs and clicking the Change button there, right? That should get you into maintenance mode for SQL Setup.

|||Yes, that's where I'm going and it does say that it's going into maintenance mode, but after checking the previous install it says there is no maintenance mode for the product.

I'll check it again tomorrow and let you know exactly what I see, rather than what I recall ;-) It's late here in Tejas.|||I've just started receiving the same blank error message. The only thing I recall doing since it ran without the error message is running windows updates with the 2 most recent suggested updates for XP + the 1.1 .NET framework. I also installed an application which uses the 1.1 framework. I had all of the same components (minus the two most recent suggested updates) running on the same machine while SQL 2005 was still in beta and never ran into this problem.<br><br>
I'm working on the machine from remote right now so I am not going to bother messing with it while it appears to still be working.|||

dubstar wrote:

I've just started receiving the same blank error message. The only thing I recall doing since it ran without the error message is running windows updates with the 2 most recent suggested updates for XP + the 1.1 .NET framework. I also installed an application which uses the 1.1 framework. I had all of the same components (minus the two most recent suggested updates) running on the same machine while SQL 2005 was still in beta and never ran into this problem.<br><br>

I'm working on the machine from remote right now so I am not going to bother messing with it while it appears to still be working.

I don't know why, but my installation just stopped didplaying the blank messagebox a couple of days after the anomally presented itself (see my post above).

I would be interested in knowing if yours goes away too.|||Oddly enough, it has!
I did what work I had to do and when I was finished I was going to try the suggested maintenance from Add/Remove Programs, but it no longer shows up. I did get a screenshot for a friend's 'collection' though.. so it wasn't a total loss. ;)|||

dubstar wrote:

Oddly enough, it has!

I did what work I had to do and when I was finished I was going to try the suggested maintenance from Add/Remove Programs, but it no longer shows up. I did get a screenshot for a friend's 'collection' though.. so it wasn't a total loss. ;)

Ha, ha...

The Phantom strikes again Smile|||I have since run into this problem again. It seems to be related to Crystal Reports. I run an application that appears to use an older version of some Crystal Reports dll than VS 2005 provides. It's a bit of an ongoing saga in that I repair VS 2005, it breaks the other app - I run the other app, it breaks VS 2005. It also appears to have an effect on the documentation browser - when it's VS 2005's turn to be broken many of the tables in the help render text improperly - it will show up half outside of the cells in any table and is mostly unreadable.

The other app is a CRM tool that I am not awfully fond of though. In all honesty, I'm kind of glad to have a reason to uninstall it. :)

...Kevin
|||I'm getting the same blank error message box after installing the 1.1 .net framework.|||well my error box just turned from a yeild sign !, to a Stop sign X, now for the problem. if i press either yes or no it reboots to the login page|||I am also getting this problem. I'm not sure but it may have started after installing the .NET Framework 1.1. I don't do anything with Crystal Reports.|||I too am getting the blank dialog, with an exclamation, although it seems to be benign and everything else is working fine. No Crystal Reports here...
|||

Does repairing .NET Framework 2.0 fix this problem?

You can do that by going to Control Panel > Add or Remove Programs and clicking on the Change/Remove button for Microsoft .NET Framework 2.0. When the setup dialog appears, select Repair and click Next.

Thanks,
Steve

Blank Error Messagebox Displayed at startup

When I start SQL Server Management Studio an error message box with no text is displayed with the Exclamation ICON. Everything seems to be working after clicking OK though. Anyone else experienced this. Also... Why is it that I can't repair the installation from Add and Uninstall? Do I have to uninstall it to repair it?

The SQL 2005 is the Developer Addition with a new install...I haven't seen the empty error message box problem. Does it still do that when you start Management Studio, or was it a one-time thing?

You should be able to repair your installation by clicking on the "Change" button rather than "Uninstall" and then walking through the setup wizard.|||Steven,

Actually when I select change from the Add/Remove menu the install starts, but after it checks prerequisets it tells me it's already installed and then tells me there is no maintenance mode and suggests that I do it from Add/Remove Programs ;o).

I don't know why, but beginning Friday the dialog box is gone (go figure). I think the system must be saying, "Wait until Otis logs on and if it's the third Thursday of the month and the moon is not full, throw up that blank message box before you open the Management Studio." Big Smile|||

You are going to Add/Remove Programs and clicking the Change button there, right? That should get you into maintenance mode for SQL Setup.

|||Yes, that's where I'm going and it does say that it's going into maintenance mode, but after checking the previous install it says there is no maintenance mode for the product.

I'll check it again tomorrow and let you know exactly what I see, rather than what I recall ;-) It's late here in Tejas.|||I've just started receiving the same blank error message. The only thing I recall doing since it ran without the error message is running windows updates with the 2 most recent suggested updates for XP + the 1.1 .NET framework. I also installed an application which uses the 1.1 framework. I had all of the same components (minus the two most recent suggested updates) running on the same machine while SQL 2005 was still in beta and never ran into this problem.<br><br>
I'm working on the machine from remote right now so I am not going to bother messing with it while it appears to still be working.|||

dubstar wrote:

I've just started receiving the same blank error message. The only thing I recall doing since it ran without the error message is running windows updates with the 2 most recent suggested updates for XP + the 1.1 .NET framework. I also installed an application which uses the 1.1 framework. I had all of the same components (minus the two most recent suggested updates) running on the same machine while SQL 2005 was still in beta and never ran into this problem.<br><br>

I'm working on the machine from remote right now so I am not going to bother messing with it while it appears to still be working.

I don't know why, but my installation just stopped didplaying the blank messagebox a couple of days after the anomally presented itself (see my post above).

I would be interested in knowing if yours goes away too.|||Oddly enough, it has!
I did what work I had to do and when I was finished I was going to try the suggested maintenance from Add/Remove Programs, but it no longer shows up. I did get a screenshot for a friend's 'collection' though.. so it wasn't a total loss. ;)|||

dubstar wrote:

Oddly enough, it has!

I did what work I had to do and when I was finished I was going to try the suggested maintenance from Add/Remove Programs, but it no longer shows up. I did get a screenshot for a friend's 'collection' though.. so it wasn't a total loss. ;)

Ha, ha...

The Phantom strikes again Smile|||I have since run into this problem again. It seems to be related to Crystal Reports. I run an application that appears to use an older version of some Crystal Reports dll than VS 2005 provides. It's a bit of an ongoing saga in that I repair VS 2005, it breaks the other app - I run the other app, it breaks VS 2005. It also appears to have an effect on the documentation browser - when it's VS 2005's turn to be broken many of the tables in the help render text improperly - it will show up half outside of the cells in any table and is mostly unreadable.

The other app is a CRM tool that I am not awfully fond of though. In all honesty, I'm kind of glad to have a reason to uninstall it. :)

...Kevin|||I'm getting the same blank error message box after installing the 1.1 .net framework.|||well my error box just turned from a yeild sign !, to a Stop sign X, now for the problem. if i press either yes or no it reboots to the login page|||I am also getting this problem. I'm not sure but it may have started after installing the .NET Framework 1.1. I don't do anything with Crystal Reports.|||I too am getting the blank dialog, with an exclamation, although it seems to be benign and everything else is working fine. No Crystal Reports here...|||

Does repairing .NET Framework 2.0 fix this problem?

You can do that by going to Control Panel > Add or Remove Programs and clicking on the Change/Remove button for Microsoft .NET Framework 2.0. When the setup dialog appears, select Repair and click Next.

Thanks,
Steve