15,908,675 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by ehabelnahas (Top 14 by date)
ehabelnahas
13-Sep-14 17:17pm
View
Well, I have tried the following code:
Private Sub Query3_PreprocessQuery(ByRef query As System.Linq.IQueryable(Of LightSwitchApplication.Stock))
query = From n In query _
Group n By n.Order_Date.year, n.Order_Date.month, n.Product_Name Into g=Group _
Select year,month,Product_Name,Quantity = g.sum(Function(n) n.Quantity)
End Sub
My code causes the screen based on Query3 not to load any data...
Please help me, I need to get each product quantites (grouped per month and per product name).
Thanks is advance
ehabelnahas
13-Sep-14 17:16pm
View
I did already, and I posted another post with the details ... but I waited so long for answers with no success.
ehabelnahas
7-Sep-14 15:09pm
View
ok, I have also SQL 2012 installed with server already created named SQLserver12
would you please tell me how should be the right connection string?
ehabelnahas
6-Sep-14 15:12pm
View
OK, now I downloaded SQL Server 2014 and I followed the next steps:
1- I made a SQL Server Instance named: MYSQLserver
2- I Created a database called: MyDatabase attached to MYSQLserver
3- and already I attached a new LightSwitch project to that database as an external data source, and the connection string was:
"Data Source=EHABELNAHAS-PC\MYSQLserver;Initial Catalog=MyDatabase;Integrated Security=True"
4- Everything is ok, now I'm trying to publish the application, now what is the "How do you want to publish the default database?" for?? and what should I choose from the two options?
5- Second this is Visual Studio 2013 LightSwitch Publish wizard now asks me for three connection strings:
•Is the Attached Data Sources connection string
•Is the User connection string
•Is the Publish database Schema
I put the same connection string in all connection strings "PC\MYSQLserver;Initial Catalog=MyDatabase;Integrated Security=True" but it always give the error "An exception occurred when deploying the database for the application. Couldn't deploy package"
and when double click on it, it takes me to:
<
Target Name="DeploySchema"
Condition=" '$(ExecuteSchemaDeploy)' == 'true' ">
<
DeploySchema ConnectionString="$(PublishConnectionString)"
IncludeSecurityDBObjects="true"
ServerArtifactsFolder="$(_ServerArtifactsFolder)"
Collation="$(DatabaseCollation)"
IntrinsicDacPackageFilePath="$(_IntrinsicDacPackageFilePath)"
DatabaseProject="@(_DatabaseProjectItem)"
Inputs="@(ServerMetadataFiles)"
ProjectPath="$(MSBuildProjectFullPath)"/>
Please Help
ehabelnahas
6-Sep-14 15:12pm
View
OK, now I downloaded SQL Server 2014 and I followed the next steps:
1- I made a SQL Server Instance named: MYSQLserver
2- I Created a database called: MyDatabase attached to MYSQLserver
3- and already I attached a new LightSwitch project to that database as an external data source, and the connection string was:
"Data Source=EHABELNAHAS-PC\MYSQLserver;Initial Catalog=MyDatabase;Integrated Security=True"
4- Everything is ok, now I'm trying to publish the application, now what is the "How do you want to publish the default database?" for?? and what should I choose from the two options?
5- Second this is Visual Studio 2013 LightSwitch Publish wizard now asks me for three connection strings:
•Is the Attached Data Sources connection string
•Is the User connection string
•Is the Publish database Schema
I put the same connection string in all connection strings "PC\MYSQLserver;Initial Catalog=MyDatabase;Integrated Security=True" but it always give the error "An exception occurred when deploying the database for the application. Couldn't deploy package"
and when double click on it, it takes me to:
<
Target Name="DeploySchema"
Condition=" '$(ExecuteSchemaDeploy)' == 'true' ">
<
DeploySchema ConnectionString="$(PublishConnectionString)"
IncludeSecurityDBObjects="true"
ServerArtifactsFolder="$(_ServerArtifactsFolder)"
Collation="$(DatabaseCollation)"
IntrinsicDacPackageFilePath="$(_IntrinsicDacPackageFilePath)"
DatabaseProject="@(_DatabaseProjectItem)"
Inputs="@(ServerMetadataFiles)"
ProjectPath="$(MSBuildProjectFullPath)"/>
Please Help
ehabelnahas
6-Sep-14 15:12pm
View
OK, now I downloaded SQL Server 2014 and I followed the next steps:
1- I made a SQL Server Instance named: MYSQLserver
2- I Created a database called: MyDatabase attached to MYSQLserver
3- and already I attached a new LightSwitch project to that database as an external data source, and the connection string was:
"Data Source=EHABELNAHAS-PC\MYSQLserver;Initial Catalog=MyDatabase;Integrated Security=True"
4- Everything is ok, now I'm trying to publish the application, now what is the "How do you want to publish the default database?" for?? and what should I choose from the two options?
5- Second this is Visual Studio 2013 LightSwitch Publish wizard now asks me for three connection strings:
•Is the Attached Data Sources connection string
•Is the User connection string
•Is the Publish database Schema
I put the same connection string in all connection strings "PC\MYSQLserver;Initial Catalog=MyDatabase;Integrated Security=True" but it always give the error "An exception occurred when deploying the database for the application. Couldn't deploy package"
and when double click on it, it takes me to:
<
Target Name="DeploySchema"
Condition=" '$(ExecuteSchemaDeploy)' == 'true' ">
<
DeploySchema ConnectionString="$(PublishConnectionString)"
IncludeSecurityDBObjects="true"
ServerArtifactsFolder="$(_ServerArtifactsFolder)"
Collation="$(DatabaseCollation)"
IntrinsicDacPackageFilePath="$(_IntrinsicDacPackageFilePath)"
DatabaseProject="@(_DatabaseProjectItem)"
Inputs="@(ServerMetadataFiles)"
ProjectPath="$(MSBuildProjectFullPath)"/>
Please Help
ehabelnahas
6-Sep-14 15:11pm
View
OK, now I downloaded SQL Server 2014 and I followed the next steps:
1- I made a SQL Server Instance named: MYSQLserver
2- I Created a database called: MyDatabase attached to MYSQLserver
3- and already I attached a new LightSwitch project to that database as an external data source, and the connection string was:
"Data Source=EHABELNAHAS-PC\MYSQLserver;Initial Catalog=MyDatabase;Integrated Security=True"
4- Everything is ok, now I'm trying to publish the application, now what is the "How do you want to publish the default database?" for?? and what should I choose from the two options?
5- Second this is Visual Studio 2013 LightSwitch Publish wizard now asks me for three connection strings:
•Is the Attached Data Sources connection string
•Is the User connection string
•Is the Publish database Schema
I put the same connection string in all connection strings "PC\MYSQLserver;Initial Catalog=MyDatabase;Integrated Security=True" but it always give the error "An exception occurred when deploying the database for the application. Couldn't deploy package"
and when double click on it, it takes me to:
<
Target Name="DeploySchema"
Condition=" '$(ExecuteSchemaDeploy)' == 'true' ">
<
DeploySchema ConnectionString="$(PublishConnectionString)"
IncludeSecurityDBObjects="true"
ServerArtifactsFolder="$(_ServerArtifactsFolder)"
Collation="$(DatabaseCollation)"
IntrinsicDacPackageFilePath="$(_IntrinsicDacPackageFilePath)"
DatabaseProject="@(_DatabaseProjectItem)"
Inputs="@(ServerMetadataFiles)"
ProjectPath="$(MSBuildProjectFullPath)"/>
Please Help
ehabelnahas
5-Sep-14 20:01pm
View
don't know by a maleware was the reason preventing writing to parts of the registry.
Thanks
ehabelnahas
5-Sep-14 10:31am
View
You are great :)
thanks kbrandwijk
I spent a full week like a mad
ehabelnahas
5-Sep-14 9:05am
View
Yes
WIN 8.1
ehabelnahas
31-Aug-14 16:04pm
View
EHABELNAHAS-PC\SQLEXPRESS always gives an error no connection established to EHABELNAHAS-PC\SQLEXPRESS
ehabelnahas
31-Aug-14 15:54pm
View
I'm afraid I couldn't achieve that...
I have now SQL server 2012 installed and I tried many instances of connection strings without success!!
I couldn't publish the application at all using connection string referring to a pc on my network.
Data Source=EHABELNAHAS-PC\SQLEXPRESS;Initial Catalog=Application2aPP;Integrated Security=True;Pooling=True;Connect Timeout=30;User Instance=False
I need 1st to be able to publish the application :(
ehabelnahas
18-Aug-14 15:34pm
View
Many thanks, I will try that and feed you back,
well, If that works, do you mean that I have to install SQL server in the pc having the database only? or it will be also necessary that SQL being installed in all pcs?
ehabelnahas
18-Aug-14 15:34pm
View
Deleted
Many thanks, I will try that and feed you back,
well, If that works, do you mean that I have to install SQL server in the pc having the database only? or it will be also necessary that SQL being installed in all pcs?
Show More