Tuesday, March 27, 2012
Attach db ... but changing its db name
I need to import into my SQL to compare data and structure with my
own to release him some new feature. Problem is how to import it.
If I simple attach db, SQL server mustn't do it, trapping duplicate
db name or something else (I wish is so and not overwrite db).
If I detach my db, and attach customer db ... I must rename db ...
but how? until today I never read of some function that rename
db ...
Can anyone give me more info please?
--
Sincerely
Andrea Morowhile attaching db with sp_attach_db you can specify the required name of
the database to be. If you want to rename the existing database you can make
use of system stored proceudre sp_renamedb
--
-Vishal
Andrea Moro <moroandreaET@.tiscalinet.it> wrote in message
news:#kH0j9LcDHA.1204@.TK2MSFTNGP12.phx.gbl...
> I've a copy of my customer db detached from its server.
> I need to import into my SQL to compare data and structure with my
> own to release him some new feature. Problem is how to import it.
> If I simple attach db, SQL server mustn't do it, trapping duplicate
> db name or something else (I wish is so and not overwrite db).
> If I detach my db, and attach customer db ... I must rename db ...
> but how? until today I never read of some function that rename
> db ...
> Can anyone give me more info please?
> --
> Sincerely
> Andrea Moro
>sql
Tuesday, March 20, 2012
Association Rules
1) I use the identifier of transaction and attribute in one table.
Do I can to build a association rules structure without the use of the nested tables?
I tried - did not turn out...
2) As it is necessary to use a main and child table, can not build a prediction query.
When I try to add the predict column in a criteria/argument (Field=PredictSupport), i'll given message:
"Nested table column cannot be used as an argument in a data mining function."
I can not use other columns, because they are not predicable.
You have to have a nested table, but you can use the same table as the case and nested tables. Just mark the transaction key as the key for the "case" table, and the transaction item as the key for the "nested" table.
In your prediction query you would predict the nested table ( you are essentially predicting which rows will be there). For example, if your model was like this:
TransID LONG KEY,
Products TABLE PREDICT
(
ProductName TEXT KEY
)
You would issue a statement like
SELECT Predict(Products, 5) FROM MyModel PREDICTION JOIN ....
|||Yes, turned out to build a model! Thanks!
But at an attempt to take advantage of builder of queries, there is an error:
Unable to retrieve the list of distinct states for mining model column Utp Doc Id.
ADDITIONAL INFORMATION:
Error (Data mining): The specified DMX column was not found in the context at line 1, column 17. (Microsoft SQL Server 2005 Analysis Services)
Without a builder - a query works :)
And yet question - as possible to apply a function, as though, PredictSupport? She needs a column, and for me does not turn out to use her from a table...
P.S.: I am sorry for my English =)
Association Browser Error
Hello Developers,
I used the add mining model to mining structure to modify a model so that maximum itemset =2, min prob=.01, min support= 2.
When i select maximum rows to anything higher than 2000 (default) i get duplicate rules.
The maximum rules returns is exactly16000 even though i set it higher than that.
Any ideas on the causes?
Thanks
Davy
Can you post the version/build you're using?|||I am using the newest version of the Excel 2007 Data mining Add-in
I'm thinking that the rules are duplicated because I built a new model into the structure with a lower min_sup and lower min_prob, than the original model in the structure. I will test my hypothesis and let you know how it goes.
|||The duplicates appeared when I selected any Maximum Row level higher than 2000. The duplicates disappeared after I made another selection after that.|||This may be a bug. Can you get in touch with Microsoft Support so we can investigate?
( Re. you previous post: The viewer behavior should not be affected by the presence of other models in the mining structure. )
Association Browser Error
Hello Developers,
I used the add mining model to mining structure to modify a model so that maximum itemset =2, min prob=.01, min support= 2.
When i select maximum rows to anything higher than 2000 (default) i get duplicate rules.
The maximum rules returns is exactly16000 even though i set it higher than that.
Any ideas on the causes?
Thanks
Davy
Can you post the version/build you're using?|||I am using the newest version of the Excel 2007 Data mining Add-in
I'm thinking that the rules are duplicated because I built a new model into the structure with a lower min_sup and lower min_prob, than the original model in the structure. I will test my hypothesis and let you know how it goes.
|||The duplicates appeared when I selected any Maximum Row level higher than 2000. The duplicates disappeared after I made another selection after that.|||This may be a bug. Can you get in touch with Microsoft Support so we can investigate?
( Re. you previous post: The viewer behavior should not be affected by the presence of other models in the mining structure. )
Association Browser Error
Hello Developers,
I used the add mining model to mining structure to modify a model so that maximum itemset =2, min prob=.01, min support= 2.
When i select maximum rows to anything higher than 2000 (default) i get duplicate rules.
The maximum rules returns is exactly16000 even though i set it higher than that.
Any ideas on the causes?
Thanks
Davy
Can you post the version/build you're using?|||I am using the newest version of the Excel 2007 Data mining Add-in
I'm thinking that the rules are duplicated because I built a new model into the structure with a lower min_sup and lower min_prob, than the original model in the structure. I will test my hypothesis and let you know how it goes.
|||The duplicates appeared when I selected any Maximum Row level higher than 2000. The duplicates disappeared after I made another selection after that.|||This may be a bug. Can you get in touch with Microsoft Support so we can investigate?
( Re. you previous post: The viewer behavior should not be affected by the presence of other models in the mining structure. )