|
I tried attaching the database on a newly created project. Still the same. Not recognized in the crystal report wizard. Sigh.. Oh well. I'll just try this newly created database first. Hopefully it works.
|
|
|
|
|
Let's hope so. If not, post what you have found and we'll see if some new ideas come up.
|
|
|
|
|
Mika Wendelius wrote: There's no reason why Crystal would connect only to a new database if the database you're trying to connect to is in good condition.
Unless Crystal Reports is connected to the new instance only. I'm willing to bet he has two instances installed.
The world is a stage and most of us are desperately unrehearsed.
—Sean O’Casey, Playwright
|
|
|
|
|
Jerry Hammond wrote: I'm willing to bet he has two instances installed
That would explain it, but even though it's a matter of connection string... "Where do want to go today"
|
|
|
|
|
If I remember my Crystal Reports it is even simpler. From within the report he is building he should be able to use the UI to connect to the correct instance/db.
The world is a stage and most of us are desperately unrehearsed.
—Sean O’Casey, Playwright
|
|
|
|
|
It depends if he's letting the dialogs to show up or if he sets credentials in the code.
But you're right, at the time when the report is launched, the actual connection is evaluated. And if any information is missing, it will be asked.
|
|
|
|
|
I got it working now. Thanks! I just created a new database however I have a new problem. Yesterday I was able to successfully migrate my data to another database, using this query: "INSERT INTO Records SELECT * FROM MMDAserver.dbo.Records", then being stupid, I accidentally deleted the newly created database from the project file I attached into. Now when I created the new database again with the same name and same everything, I already get this error when I try to copy them again:
Msg 8101, Level 16, State 1, Line 1<br />
An explicit value for the identity column in table 'Records' can only be specified when a column list is used and IDENTITY_INSERT is ON.
|
|
|
|
|
This means that you hav an IDENTITY column in records table. Normally you cannot give value to an identity column because SQL Server assigns it. When migrating old data you can set this feature temporarily off. Have a look at: SET IDENTITY_INSERT (Transact-SQL)[^]
However if you don't want that SQL Server assigns the value at all, you should remove the identity definition from that table.
|
|
|
|
|
Yeah I just noticed. LOL. I removed the Identity Specification for the newly created tables. THANKS A BUNCH! You guys were a great help!
|
|
|
|
|
You're welcome
|
|
|
|
|
hi everybody,
My sql databse gets suspected and i am not able to use that database or delete that database.How can i use that database.
|
|
|
|
|
|
Hi All,
I m using Reporting services 2005... I ve to use TWO Databases
(Same Server) in a single Query.... In that,ve to pass Database name as PARAMETERS...
How to pass DB name as a parameter using reporting services 2005...
Pls any one suggest some Solution...
Thanks in advance...
|
|
|
|
|
Would it be possible to create a view in one of the databases that links to the second DB and contains the information you need? This might be easier...
|
|
|
|
|
Thanks for ur solution... It Works...
|
|
|
|
|
Friends,
Is there any sql query which returns the data type of the fields in a table.
please help me
Shivanandan C V
|
|
|
|
|
select name,column_id,system_type_id,type_name(system_type_id) system_type_name,max_length from sys.columns where object_id=object_id('"Schema".tableName')
|
|
|
|
|
Hi,
I have a column in table 'str_Name'of type string.
It contains the data as shown below.
Vishnu
Rajesh
12Sharma
02Santhosh
34657Chandu
Anita
Swapna
987fhug
Deepika
Divya
Janaki
My requirement is to get names which starats with numerics
Please suggest me how to achieve this in 'SQL Server 2005'.
Thanks in Advance
|
|
|
|
|
sekhar.k wrote: get names which starats with numerics
One easy way is to use like operator:
... str_Name LIKE '0%'
OR str_Name LIKE '1%'
...
|
|
|
|
|
Hi Mika Wendelius,
Thanks for your valueble suggestion.
|
|
|
|
|
|
you could also use something like
Where str_Name like '[0-9]%'
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
ThanQ for your suggestion.
|
|
|
|
|
try this
select str_name from mytable where isnumeric(left(str_name,1)) = 1
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Thanks for your suggestion
|
|
|
|